Re: Website development path

2017-01-18 Thread Peter Jakobsson
On 18 Jan 2017, at 00:13, David Adams wrote: > Question: "We can't use pre-emptive threads." > Answer: "So what." > > Seriously, so what. Does it matter in your case? Does *anyone* have a case > where it matters. Just to chime in on this, I can see both David’s side and

Re: Website development path

2017-01-18 Thread Peter Jakobsson
On 18 Jan 2017, at 23:16, Sujit Shah wrote: > I will be sold on any 4D based plugin or component that can demonstrate > this. Hi Sujit I agree with the sentiment of your post which is why I’ve decided to sit out this particular phase of the human race’s evolution until it

Re: 32 Bit or 64 Bit ?

2017-01-17 Thread Peter Jakobsson
Many thanks Ortwin, Pat and Timothy for the very informative replies. I’m a bit clearer on the priorities now ! Best Regards Peter On 17 Jan 2017, at 11:29, Pat Bensky wrote: > I am pretty sure I read that 4DWrite Pro requires the 64-bit version, but I On 17 Jan 2017,

32 Bit or 64 Bit ?

2017-01-17 Thread Peter Jakobsson
Hi Subject says it all. Should one compile with 32 bit or 64 Bit version ? What’s the point of one over the other (on the respective Mac & Windows platforms) ? They both seem to be exactly the same size. Is it just that you can have a bigger cache with 64 ? Why would one want to stick with 32

Re: Website development path

2017-01-18 Thread Peter Jakobsson
On 18 Jan 2017, at 15:01, John DeSoi wrote: > It is a good point, but a lot of other options allow you to leverage open > source features rather than re-inventing them in 4D. For example, Drupal has > a great feature set out of the box and I'm not going to re-implement all of

Re: How does one get a 4D French or non-english version ?

2017-01-19 Thread Peter Jakobsson
Le 19 janv. 2017 à 21:10, Timothy Penner a écrit : > Did you try setting the "Use Regional System Settings" for the 4D Programming > Language? Ah, c'était ça ! Je vois tout en français maintenant. Merci Timothée !

How does one get a 4D French or non-english version ?

2017-01-19 Thread Peter Jakobsson
Hi I’m trying to get hold of a version of 4D which uses a non-English method language but have been unsuccessful. I tried downloading from 4D.fr (v16) but the method editor is still all in English. Also tried switching my OS over to French - then I get all the menus in French but 4D’s

Re: Version hell on Mac

2016-10-04 Thread Peter Jakobsson
On 4 Oct 2016, at 20:18, Benedict, Tom wrote: > Do you happen to know whether this will cause the On Saving Existing Record > Event Trigger Event to occur? I’m afraid I don’t - good question. I would imagine not. If it ran trigger code it could screw everything so I

Re: Version hell on Mac

2016-10-04 Thread Peter Jakobsson
> We’ve seen with v15 the biggest thing seems to be the unique keys, presumably > with uuids. How did you handle that? Did you just have uuids added onto all > your tables? Ah ! Well you can either spend 2 days doing it (as I did once)……or you can get hold of a bit of SQL code originally

Re: Version hell on Mac

2016-10-04 Thread Peter Jakobsson
Paul, here’s that code snippet. I found it. // Ortwin Zilgen code for instantly upgrading primary keys in a post v13 database (Works !) C_LONGINT($i;$P_SIZE) C_TEXT($tableName_t) $fieldName:="pkUUID" $P_SIZE:=Get last table number For ($i;1;$P_SIZE) If (Is table number valid($i))

Re: Saving records from within a component

2016-10-09 Thread Peter Jakobsson
On 9 Oct 2016, at 17:11, Pat Bensky wrote: > Any other ideas? The only thing I can think of is a trigger error or database constraint that is generating a silent error due to being inside an ON ERR CALL. Peter

Re: Form objects remaining disabled between forms

2016-09-17 Thread Peter Jakobsson
…just an update to this phenomenon. I can’t reproduce it in a new database. 4D does seem to reset the enabled state between forms with all else eliminated. So it may be some other factor. Will investigate. Peter ** 4D

Re: Form objects remaining disabled between forms

2016-09-17 Thread Peter Jakobsson
On 17 Sep 2016, at 18:17, Kirk Brooks wrote: > Instead I'd copy it to > either a menu or a form object array when the user clicks on it Hi Kirk That sounds interesting. Do you mean present the menu as a button and then display the pop-up menu dynamically when the user

Form objects remaining disabled between forms

2016-09-17 Thread Peter Jakobsson
Hi This is a phenomenon I (we ?) have lived with for a couple of centuries and just thought I’d bring it up for discussion since the new OBJECT SET ENABLED command seems to inherit the old behaviour. Lets say you have a text array process variable manifesting as a pop-up menu on one form and

Parameter Passing - $N or Objects ?

2016-09-30 Thread Peter Jakobsson
Hi I like using traditional parameters for methods because they are so exposed for the compiler. Also I use a huge amount or globals (process and interprocess) so they never get out of hand. I’ve found this approach to be very reliable because parameter count and type mismatches get spotted

Apple Agrees with 4D !

2016-10-27 Thread Peter Jakobsson
Desktops are here to stay :-)) In a classic dismissal of industry trends (one that they themselves initiated no less) they’ve migrated the screen to the keyboard instead of the keyboard to the screen. This is a very smart move IMO and after watching nearly 30 years of Apple launches I can’t

Re: Object Arrays - Very Interesting "Watchas"

2016-10-29 Thread Peter Jakobsson
Hi Jeremy Thats a nice way of doing it. I’ll use that in future in this scenario I think. Thanks ! Peter On 29 Oct 2016, at 16:45, Jeremy French wrote: > Have you tried using OB Copy? > > That is, you would do: > > APPEND TO ARRAY($arrOBJECTS;OB Copy($myObject))

Re: Object Arrays - Very Interesting "Watchas"

2016-10-29 Thread Peter Jakobsson
On 29 Oct 2016, at 19:41, Peter Bozek wrote: > Now $object1 and $object2 create a circular reference (and debugger will > show it cannot display such object), they may not be cleared from memory > when method ends (will not be cleared ever.) Hi Peter Thats an

Re: Pluggers Software releases NTK Plugin 3.0

2016-11-21 Thread Peter Jakobsson
On 21 Nov 2016, at 17:28, Kirk Brooks wrote: > First off - wow, very impressive and a fabulous demo db……. - The javascript > framework isn't dependent on Angular. (But a framework > is helpful.) Let me get this straight. Is NTK 3.0 essentially starting to compete

Re: Apple Agrees with 4D

2016-10-28 Thread Peter Jakobsson
> I may have miss-understood the whole thing but it seems that unless we have > some access to the touch bar then in actual fact 4D will not agree with Apple > ☺ Good point Dougie. But I see that strip thing as just being an enhancement of the keyboard and mouse inputs. So, it follows that

Object Arrays - Very Interesting "Watchas"

2016-10-29 Thread Peter Jakobsson
Hi Apologies if this has been discussed before - I haven’t kept up with all threads on the topic but noticed this interesting behaviour just now. I thought it was a bug at first but now I see it’s a feature, albeit a slightly un-intuitive one based on what we’re used to. If I do this……..

Data Dictionary to Structure via XML ?

2016-10-11 Thread Peter Jakobsson
Hi I tried to write some code to convert 2 columns of data dictionary (“Fieldname” “Fieldtype” definitions) from iWork’s “Numbers” spreadsheet straight to a 4D structure but unfortunately it doesn’t work. The code simply captures a piece of text from the clipboard and reformats it in 4D’s XML

Re: Data Dictionary to Structure via XML ?

2016-10-12 Thread Peter Jakobsson
On 12 Oct 2016, at 12:57, Arnaud de Montard wrote: > But, unless I'm wrong, about relations in a copy/paste process, they are in > the copy but ignored by paste (tried v14 R5 and compared export as xml data > vs copy items in structure). Hi Arnaud Yes, thats what I found

Re: Data Dictionary to Structure via XML ?

2016-10-12 Thread Peter Jakobsson
Miyako - On 12 Oct 2016, at 02:28, Keisuke Miyako wrote: > you can add tables and fields via the clipboard or the new IMPORT STRUCTURE > command. Your answer gave me the confidence to go back and look harder at the solution. Turns out 4D had a problem with the

Re: Data Dictionary to Structure via XML ?

2016-10-12 Thread Peter Jakobsson
On 12 Oct 2016, at 14:13, Arnaud de Montard wrote: > I seem to remember I saw that when some tables had comments - but far, far > ago! Ok, thanks. I’ll check. Peter ** 4D Internet Users Group (4D iNUG) FAQ:

Re: What is your preferred way to inspect object contents ?

2016-12-13 Thread Peter Jakobsson
On 12 Dec 2016, at 23:16, Ortwin Zillgen wrote: > I had the same idea > Very nice ! I also just remembered JPR’s Lego. I’ll need to dig out his summit videos as I remember he had these hierarchical lists everywhere that supported

Re: Hourly Consulting Rates

2016-12-17 Thread Peter Jakobsson
In the UK, the hourly rate for a plumber or electrician is around £60 = $75. 4D going rates appear to be about half to two thirds that amount based on day rate. (Not much point in hiring a programmer for an hour). So, using that rule of thumb, take your local plumber/electrician rate and

Re: What is your preferred way to inspect object contents ?

2016-12-12 Thread Peter Jakobsson
On 12 Dec 2016, at 18:09, Cannon Smith wrote: > When you say you want to see it on a form, are you talking for debugging > purposes or to actually display to a user? Hi Canon I have a few forms which are used for unit testing - e.g. components and such like.

Re: Tip: Binary insertion code

2017-01-15 Thread Peter Jakobsson
On 14 Jan 2017, at 23:32, David Adams wrote: > There's no need to use recursion. Dave Terry's code avoids it with > iteration but you can always replace recursion with a stack. Recursion > automatically gives you a stack for "free" Hi David I think you’re possibly referring

Re: Passing Object Pointers vs References - slight 'gotcha'

2016-12-01 Thread Peter Jakobsson
On 1 Dec 2016, at 16:16, Kirk Brooks wrote: > I use all three of the instances discussed: direct referencing of the $1 > object, pointers to the object and returning an object as $0. Hi Kirk The problem is, it shouldn’t really work like this IMO. Strictly speaking it’s a

Re: Passing Object Pointers vs References - slight 'gotcha'

2016-11-30 Thread Peter Jakobsson
On 30 Nov 2016, at 22:29, Jeffrey Kain wrote: > I agree that the implicit pass-by-reference for objects only is not > comfortable nor consistent with the rest of 4D…..but it just doesn't 'fit' > with how the rest of the language works. Ok, thats all the endorsement I

Passing Object Pointers vs References - slight 'gotcha'

2016-11-30 Thread Peter Jakobsson
Hi ! A while back there was a brief discussion about the relative merits of passing an object parameter directly vs passing it as a pointer. As I remember, the conclusion was that a pointer wasn’t needed because 4D is just passing a reference to the object - it isn’t copying the object in the

Re: Passing Object Pointers vs References - slight 'gotcha'

2016-12-01 Thread Peter Jakobsson
On 1 Dec 2016, at 20:56, Rob Laveaux wrote: > Honestly I disagree with you on this. There are other “data types” in 4D that > are passed by reference. For example hierarchical lists, plugin areas, menu > references, XML references. AH ! I you might just have given me

Re: Passing Object Pointers vs References - slight 'gotcha'

2016-11-30 Thread Peter Jakobsson
On 30 Nov 2016, at 23:29, Wayne Stewart wrote: > but if I want a result back then using pointers or > possibly return the altered object as $0 Yes - I noticed that that works in components as well. The problem is heterogeneous behaviour: Consider 2 calls to exactly

Re: Passing Object Pointers vs References - slight 'gotcha'

2016-11-30 Thread Peter Jakobsson
On 1 Dec 2016, at 00:22, David Adams wrote: > I think that what 4D did to use JSON for complex data types is kind of a > great idea. Bravo. But let's not think for a minute that these are > "Objects" Some very useful points there David. Thanks for your thoughts ! Peter

Re: Passing Object Pointers vs References - slight 'gotcha'

2016-11-30 Thread Peter Jakobsson
On 30 Nov 2016, at 23:48, Douglas von Roeder wrote: > Doesn't this seem to be a function of variable scope? Yes indeed. The component has to duplicate the object so that it can “work” on it within its own scope - thats the correct/classic behaviour. I just think the host

Re: Passing Object Pointers vs References - slight 'gotcha'

2016-12-01 Thread Peter Jakobsson
On 1 Dec 2016, at 02:34, John DeSoi wrote: > I created a compiled component... the host sees both the added and removed > property executed in the component. What am I missing? Hi John It can work under various circumstances, but the results are variable. For example your

Re: Passing Object Pointers vs References - slight 'gotcha'

2016-12-01 Thread Peter Jakobsson
On 1 Dec 2016, at 10:26, Peter Jakobsson <li...@netkelvin.com> wrote: > You need to use a pointer to get total consistency. Just for clarification, there is nothing wrong with C_OBJECT($1) per se. I’m only talking about the case where we want to manipulate a variable in the calli

Re: Passing Object Pointers vs References - slight 'gotcha'

2016-12-01 Thread Peter Jakobsson
On 1 Dec 2016, at 10:58, Rob Laveaux wrote: > Use it like a constructor function Yes - that looks a very nice way of doing it Rob. (P.S. You’ve reminded me of my first foray into OO: pig=new(animal), pig.eat, cow.moo. I decided it was good for farming but not so great

Re: Non-modal window opens behind modal - any way out ?

2016-12-19 Thread Peter Jakobsson
On 19 Dec 2016, at 21:53, Tim Nevels wrote: > Universal use of resizable sheet windows for dialog boxes may be your answer. > And if the dialog box should not be resizable, then still open it as a > resizable sheet window but in the window properties set the “Form Size” and

Re: Hourly Consulting Rates

2016-12-19 Thread Peter Jakobsson
On 19 Dec 2016, at 14:18, Herr Alexander Heintz wrote: > That rate is going to skyrocket in the next 2 years, at the same time work > quality will drop > Sorry, couldn’t resist... Touché ! Well as long the “natives” still earn enough to keep buying your beer we should

Questions about the 'Sum' function

2017-04-12 Thread Peter Jakobsson via 4D_Tech
Hi Occasionally I’d like to use the “Sum” function on a current selection but am hesitant because of distant memories of it only being supported in certain circumstances (e.g. in reports, on single user.not client server etc). Do people use this outside of a report context and on any current

Re: Questions about the 'Sum' function

2017-04-12 Thread Peter Jakobsson via 4D_Tech
On 12 Apr 2017, at 13:38, Sujit Shah via 4D_Tech <4d_tech@lists.4d.com> wrote: > My understanding is a selection or array i think it works for both. Thanks ! Peter ** 4D Internet Users Group (4D iNUG) FAQ:

Re: Questions about the 'Sum' function

2017-04-12 Thread Peter Jakobsson via 4D_Tech
On 12 Apr 2017, at 13:29, Sujit Shah via 4D_Tech <4d_tech@lists.4d.com> wrote: > Sum has always worked on a series Thanks Sujit. But what’s the definition of a ‘series’ ? Does a field from a current selection qualify as a ‘series’ ? Peter

Re: Migrating Tables with Relations Between Structures

2017-04-05 Thread Peter Jakobsson via 4D_Tech
Hi John Thanks for that suggestion. I tried that but in a complex structure it’s quite a footery and unsystematic process. You’ve got to identify tag blocks indirectly by UUID and so on and I found it didn’t save much time over just redrawing the relations manually. It probably works better

Re: Migrating Tables with Relations Between Structures

2017-04-06 Thread Peter Jakobsson via 4D_Tech
Many thanks Miyako ! I’ll look into both of those approaches. Very promising. Peter On 6 Apr 2017, at 02:37, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> wrote: > when you copy multiple tables in the structure editor, > you get the table as well as the relation. > > pasting it back to

Re: [OFF] Hardware advice Was: 4D World Tour 2017

2017-04-05 Thread Peter Jakobsson via 4D_Tech
On 5 Apr 2017, at 19:52, Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com> wrote: > If it was my personal money, I'd probably find a used MacBook Pro from 2014 > or 2015, fully loaded. If the purchase is part of a budget, I'd wait for the > forthcoming "Kaby Lake" revision to the MacBook Pro

Re: Clean Slate - Modern User Experience.

2017-04-16 Thread Peter Jakobsson via 4D_Tech
On 15 Apr 2017, at 09:49, rooftop99--- via 4D_Tech <4d_tech@lists.4d.com> wrote: > Where could I go to see samples of what folks are doing with 4D which brings > the UI into the modern era? Any thoughts? Doesn’t the O/S define ‘modern era’ ? If you stick to vanilla 4D objects (i.e. just the

Re: Components: How do you reuse utility code?

2017-04-21 Thread Peter Jakobsson via 4D_Tech
On 21 Apr 2017, at 02:44, Tim Nevels via 4D_Tech <4d_tech@lists.4d.com> wrote: > I think we sometimes forget that 4D is not a 3GL programming language like C > or C++. 4D is a 4GL language. You don’t get all the feature, benefits and > capabilities of a 3GL language in a 4GL language. Remember

Migrating Tables with Relations Between Structures

2017-04-05 Thread Peter Jakobsson via 4D_Tech
Hi I visited this subject a few years ago and was wondering what people prefer to do in this situation. Let’s say you have a group of tables with complex relations. You want to copy them from one structure to another as a coherent block, retaining the relations. What’s the best way ? - drag

Copying forms between structures: No 'Use Object with Same Name' option

2017-04-14 Thread Peter Jakobsson via 4D_Tech
Hi I’ve always wondered why this option is available when copying tables between structures but not when copying formats. It would save an enormous amount of time since every time you copy a form you have to manually go through the same formats over & over again mapping them to the format

Minute of Silence for the "Altura Toolbox"

2017-04-17 Thread Peter Jakobsson via 4D_Tech
Being something of a “4D fossil” myself as one of our more celebrated peers once put it, I couldn’t help raising an eyebrow at the quietly announced retirement (see 4D Blog) of an equally entrenched but possibly far more productive contemporary and felt I couldn’t let this news pass without at

Arrays vs Object for Key/Value pair lookups

2017-07-17 Thread Peter Jakobsson via 4D_Tech
Hi I remember at last year’s summit, JPR was emphasising how objects were far more optimised than arrays for doing lookups over large numbers of key value pairs. e.g. we usually do this: $x:=find in array(myKEYS;”product_code_x”) if($x>0) $0:=myPRICES{$x} end if How do people prefer to do

Re: Arrays vs Object for Key/Value pair lookups

2017-07-17 Thread Peter Jakobsson via 4D_Tech
On 17 Jul 2017, at 17:03, Herr Alexander Heintz via 4D_Tech <4d_tech@lists.4d.com> wrote: > so I queried for the language I needed and then > apply to selection([dict];ob set(<>Dict;[dict]WordKey;[dict]Word) Ah ! So you just ‘hoover up’ into your dictionary object. Like a hoover ? Peter

Re: Arrays vs Object for Key/Value pair lookups

2017-07-17 Thread Peter Jakobsson via 4D_Tech
Thanks Alexander. Which style of implementation did you use ? Did you use the old array lookup key as the new object key in the key/value pair ? i.e. did you enumerate the keys like this: ? === OLD WAY === ARRAY LONGINT(vArrKeysID; 1000) ARRAY LONGINT(vArrKeysNames; 1000) $x:=Find in

Use of Objects vs Global Variables (Was 'Arrays vs Objects...)

2017-07-18 Thread Peter Jakobsson via 4D_Tech
This is just a brief commentary on my experience with objects after about a year of using them intensively. I now use them extensively for certain things but have ditched them for others where I had initially thought they may have a role. But one of the reasons I don’t use 4D objects too

Re: Use of Objects vs Global Variables (Was 'Arrays vs Objects...)

2017-07-21 Thread Peter Jakobsson via 4D_Tech
Well, I’m afraid I’ll have to take the pariah role here and politely disagree with you all :-)) - or at least present an alternative perspective in which “globals” play a very powerful and unique part. Lets think this all through for a moment. As is relevant to this topic, we can notionally

Re: Use of Objects vs Global Variables (Was 'Arrays vs Objects...)

2017-07-21 Thread Peter Jakobsson via 4D_Tech
On 21 Jul 2017, at 16:48, David Adams via 4D_Tech <4d_tech@lists.4d.com> wrote: > * No. You do not need classes. Modules do not require OOP, OO came out of > earlier work and embraced modules and extended them. I'm just talking about > module-level scope and data hiding, not OO Ok, you could be

Re: Arrays vs Object for Key/Value pair lookups

2017-07-20 Thread Peter Jakobsson via 4D_Tech
On 20 Jul 2017, at 11:39, JPR via 4D_Tech <4d_tech@lists.4d.com> wrote: > In case of an object, the properties are 'indexed' by using an internal Hash > table, so the access to one particular Property doesn't need a sequential > parsing of the list of values, but an almost direct access. I

Re: Nested transactions - most appreciated feature

2017-07-02 Thread Peter Jakobsson via 4D_Tech
On 2 Jul 2017, at 00:12, Alan Chan via 4D_Tech <4d_tech@lists.4d.com> wrote: > It's a great feature if long transaction that holding up records isn't an > issue to your operation. Of course, make sure no one would take coffee in the > middle of a transaction:-) Hi Alan They execute in

Re: Nested transactions - most appreciated feature

2017-07-02 Thread Peter Jakobsson via 4D_Tech
On 2 Jul 2017, at 18:44, Alan Chan via 4D_Tech <4d_tech@lists.4d.com> wrote: > If there's no UI, why you need nested transaction? I’ve never considered transactions as a UI tool (mainly because it’s a bit of a nightmare matching the scope of the opening and closing points) but I acknowledge

Nested transactions - most appreciated feature

2017-07-01 Thread Peter Jakobsson via 4D_Tech
Hi Sorry to be late to the party on this. It always takes me about 5 years to start using a new feature of 4D with gusto. I tend to believe that if I’ve worked around some deficiency for years then suddenly having to *not* do so is too good to be true and that there must be some catch. In

Re: Components: How do you reuse utility code?

2017-04-21 Thread Peter Jakobsson via 4D_Tech
Jim - I read all of your post with interest. But with respect, IMHO it really does not do the least bit of justice to the real world applications that 4D’s component architecture is designed to address. Nor does it reflect the practice of a component based development paradigm. For example

Re: Getting component to update

2017-04-24 Thread Peter Jakobsson via 4D_Tech
On 24 Apr 2017, at 22:50, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> wrote: > I opened another method to publication. Hi Chip When you made the change the first time, was the host structure still open ? TRY: • open the component structure only • un-publish the method • re-publish it

Re: How to trap a form save keystroke in an object method ?

2017-05-18 Thread Peter Jakobsson via 4D_Tech
On 18 May 2017, at 05:50, Jody Bevan via 4D_Tech <4d_tech@lists.4d.com> wrote: > Get rid of the auto save action. Then you can handle what ever situations you > need to. We have not used auto action buttons for 25 years. Hi Jody I have actually done that. It isn’t the problem here though - the

How to trap a form save keystroke in an object method ?

2017-05-17 Thread Peter Jakobsson via 4D_Tech
Hi I rarely come across this problem. Lets say you have a field with an “On Data Change” object method which does field level validation that rejects an entry. Lets says the form has a default button and the user clicked the “Big Enter” key (on the numeric keypad) which invokes a ‘save’

Re: Components: Running uncompiled?

2017-05-04 Thread Peter Jakobsson via 4D_Tech
On 4 May 2017, at 12:33, David Adams via 4D_Tech <4d_tech@lists.4d.com> wrote: > I'm still working away on my components and I have another remedial > question. I'd really like to be able to trace through a component while in > the host. Sometimes this works, sometimes I get complaints Hi David

Re: oh sweet

2017-10-06 Thread Peter Jakobsson via 4D_Tech
> On 6 Oct 2017, at 17:54, Nigel Greenlee via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > How long have i wanted this…. +1 Nigel ! ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive:

Re: [offish]Volume of mail

2017-10-06 Thread Peter Jakobsson via 4D_Tech
> On 5 Oct 2017, at 21:15, Jeffrey Kain via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > We have a lot of 4D developers working here, but I'm on the only who > participates actively in the list. Also, 4D has a lot fewer "issues" these > days than in the old days. I’m probably in this category

Tip: Exporting to a target folder in a package

2017-10-24 Thread Peter Jakobsson via 4D_Tech
Hi I have XLIFF applications that generate stuff like custom constants and language resources. Unfortunately, if you use 4D’s desktop navigation commands like “Create Document(“”)” or Select Folder and the like, to allow the user (me !) to locate the target folder for the export, it doesn’t

Re: Saving an object array to disk

2017-12-05 Thread Peter Jakobsson via 4D_Tech
> On 5 Dec 2017, at 16:18, Peter Jakobsson via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > (I’m trying to migrate an entire table for processing selectively in another > structure. I packed each record into respective elements of an object array > then wrot eit to

Re: Saving an object array to disk

2017-12-06 Thread Peter Jakobsson via 4D_Tech
> On 5 Dec 2017, at 20:45, Timothy Penner via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > The docs say: "WARNING: This command does not support array variables. Use > the new BLOB commands instead." Thanks Tim Didn’t see that. > > Why don't you just use SQL EXPORT SELECTION and SQL EXECUTE

Saving an object array to disk

2017-12-05 Thread Peter Jakobsson via 4D_Tech
Hi Has anyone used the SAVE VARIABLES command with an object array ? I am getting crashing when I try to read it back in with LOAD VARIABLES. The test data is tiny so it isn’t size that’s the problem. Just wondering if anyone’s tried it. (I’m trying to migrate an entire table for processing

Re: Tip: Exporting to a target folder in a package

2017-10-24 Thread Peter Jakobsson via 4D_Tech
> On 24 Oct 2017, at 12:39, David Adams via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Have you tried Select document? It lets you navigate inside of packages. > On 24 Oct 2017, at 12:48, Koen Van Hooreweghe via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > Select folder allows you to

Re: Docs about "twinned" process and pre-emptive mode

2018-01-19 Thread Peter Jakobsson via 4D_Tech
> On 19 Jan 2018, at 04:10, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > are you familiar with the request log file? > > you will see a P (for preemptive) or C (for cooperative) indicated for each > network request. The log file seems to do this for everything *except* the

Re: Docs about "twinned" process and pre-emptive mode

2018-01-19 Thread Peter Jakobsson via 4D_Tech
Ok, I dug out an old laptop which had a lot of interesting discussion on this from 2011. What I’m wondering is if triggers can now run pre-emptively (if they are compliant code-ways: no IP variables etc). In 2011, David Dancy said that any regular 4D code whatsoever would force the method to

Re: Docs about "twinned" process and pre-emptive mode

2018-01-18 Thread Peter Jakobsson via 4D_Tech
Thanks Miyako. That’s useful. I basically was wanting to know if inline SQL used the “twinned” pre-emptive thread or not. Peter > On 19 Jan 2018, at 04:10, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > are you familiar with the request log file? > > you will see a P (for

Docs about "twinned" process and pre-emptive mode

2018-01-18 Thread Peter Jakobsson via 4D_Tech
Hi I’ve been raking through the online documentation trying to find where the querying modes pre-emptive / co-operative are documented but have been unsuccessful. What I’m specifically looking for is more background on what conditions SQL queries use the twinned pre-emptive process for