Re: Compiling for Windows and Mac

2019-10-17 Thread Paul Lovejoy via 4D_Tech
Thanks! Paul > On 18 Oct 2019, at 06:17, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > that's basically right, > > v11 was the last version that supported i386 and ppc. > the label back then was "Compile for PPC and Intel processors (Mac Intel and > Windows)" > > http://lib

Re: Compiling for Windows and Mac

2019-10-17 Thread Keisuke Miyako via 4D_Tech
that's basically right, v11 was the last version that supported i386 and ppc. the label back then was "Compile for PPC and Intel processors (Mac Intel and Windows)" http://library.4d-japan.com/REFERENCE/v11/4D_v11_Design_Ref.pdf --- stating with v12, we have the option to "also compile for 64-

Compiling for Windows and Mac

2019-10-17 Thread Paul Lovejoy via 4D_Tech
Hi, We have been running a v15 server on Mac OSX clients. We now plan on moving to v17 and running on Windows server with Mac clients. I haven’t run a 4D database on a Windows server for about 10 years. I can no longer find the option to compile for both platforms. Is this no longer necessary

RE: stack error - again

2019-10-17 Thread Chip Scheide via 4D_Tech
My original reply to this message was eaten and finally kicked back. I have tried converting both the component and host system to v16, run MSC on both. the host, with an interpreted component crashes right to the desk top - no error. Chip > Chip, > > Among the things that work differently co

Re: Object Array - finding an object with attritbute value

2019-10-17 Thread Jim Crate via 4D_Tech
That will work, if you’re not using Cannon’s OBJ methods. Cannon’s methods allow you to search multiple levels of an object using dot notation in the key name (a key-path). So if your objects had attributes that were objects, like: [ { “name” : { “first”: “Chip”, “last”: “Scheide”}, “add

Re: Object Array - finding an object with attritbute value

2019-10-17 Thread Chip Scheide via 4D_Tech
Jim, why does this not work? C_POINTER($1;$Array;$3;$Value) C_TEXT($2;$Property) $Array:=$1 $Property:=$2 $Value:=$3 For ($i;1;Size of array($Array->)) If (OB Is defined($Array->{$i};$Property)) If (OB Get($Array->{$i};$Property)=$Value->) $0:=$i $i:=Exit_Loop End if

Re: Object Array - finding an object with attritbute value

2019-10-17 Thread Jim Crate via 4D_Tech
On Oct 17, 2019, at 5:06 PM, Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> wrote: > > Given that I have an array of objects - Array Object(object_array;5) > > (hand waving) I populate the array with objects ... > > how do I find which object in the array has an attribute/property with > a sp

Re: Object Array - finding an object with attritbute value

2019-10-17 Thread Chip Scheide via 4D_Tech
Thanks! no 'For each' command in v15 - but I get the idea. I was hoping/expecting that 4D had modified (or written a new command) Find in Array to handle objects. Chip On Thu, 17 Oct 2019 22:37:27 +0100, Narinder Chandi via 4D_Tech wrote: > Chip, > > Use the For each...End for each loop constr

Re: Object Array - finding an object with attritbute value

2019-10-17 Thread Narinder Chandi via 4D_Tech
Chip, Use the For each...End for each loop construct to iterate over the array of objects, something like (untested written off the bat): For ($i;1; size of array(object_array)) For each(property;object_array{$i}) If ([property="Object_Name") If (object_array{$i}.property="Fred") //o

Object Array - finding an object with attritbute value

2019-10-17 Thread Chip Scheide via 4D_Tech
Given that I have an array of objects - Array Object(object_array;5) (hand waving) I populate the array with objects ... how do I find which object in the array has an attribute/property with a specific value? ex: property "Object_Name" : "Fred" How do I find the array element (object) in which

Re: LIST USER FORMS does not work on 4D Server anymore

2019-10-17 Thread Patrick Emanuel via 4D_Tech
I agree. It is not clearly documented, but usage of pictogramme is mentionner here with an exemple of OK system variable: In this documentation, the pictogram indicates that a command modifies the value of the OK varia

Re: LIST USER FORMS does not work on 4D Server anymore

2019-10-17 Thread Julio Carneiro via 4D_Tech
I guess something more explicit than a little icon (which is not documented either) should be in the command description. Specially considering that the behaviour has changed at some point between V12 & V16. > On Oct 17, 2019, at 9:58 AM, Patrick Emanuel via 4D_Tech > <4d_tech@lists.4d.com> w

Re: LIST USER FORMS does not work on 4D Server anymore

2019-10-17 Thread Patrick Emanuel via 4D_Tech
Hi Julio, If you have a look on the red icon present on the documentation and let the mouse on it, you'll see 'Not for server'. If you click on it, you'll get all commands 'Not for server'. This information is also available on our latest QS_toolbox version. Patrick - Patrick EMANUEL ---

Re: LIST USER FORMS does not work on 4D Server anymore

2019-10-17 Thread Julio Carneiro via 4D_Tech
Exactly my point. If it has been deprecated on Sever side, that is not documented anywhere. I know it works on V12, but fails from V16 and over… I have not checked the intermediate versions. > On Oct 16, 2019, at 11:16 PM, Keisuke Miyako via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > actuall