Re: FYI: 4D-Objects - Embedded Objects --> Save as file

2019-09-24 Thread Jörg Knebel via 4D_Tech
> On 25 Sep 2019, at 04:59 AEST, Aparajita Fishman via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > Property names are case-sensitive. That why this one failed. I already figured this out. >> So, I think 4D-Objects need more time (another 25 years?) to catch up with >> ObjectTools… > >

Re: FYI: 4D-Objects - Embedded Objects --> Save as file

2019-09-24 Thread Kirk Brooks via 4D_Tech
Tim, On Tue, Sep 24, 2019 at 2:32 PM Tim Nevels via 4D_Tech <4d_tech@lists.4d.com> wrote: > On Sep 24, 2019, at 8:00 PM, Kirk Brooks wrote: > > Do you have to Base64 encode the picture to store it in the JSON file? > > I would PICTURE TO BLOB and then BASE64 ENCODE the blob to create a text >

Re: FYI: 4D-Objects - Embedded Objects --> Save as file

2019-09-24 Thread Tim Nevels via 4D_Tech
On Sep 24, 2019, at 8:00 PM, Kirk Brooks wrote: > Do you have to Base64 encode the picture to store it in the JSON file? I would PICTURE TO BLOB and then BASE64 ENCODE the blob to create a text representation of the picture. Reverse the process to bring it back. Tim Sent from my iPad

Re: v12 and El Capitan ?

2019-09-24 Thread Chip Scheide via 4D_Tech
well... I am having no issues with v11 on El Capitan (10.11.6) I have no issue with development, and no issues with clients - however, my server is running 10.9.6, as I have to jump through hoops to update the server OS. Chip On Tue, 24 Sep 2019 15:50:41 -0400 (EDT), Janie Marlow via 4D_Tech

v12 and El Capitan ?

2019-09-24 Thread Janie Marlow via 4D_Tech
Occasionally I've read here that some of you have used 4D v12 on El Capitan (OS 10.11.6). Software/hardware issues are tempting me to try that -- for a short period of time at least -- or is this something you would warn me away from? What kinds of issues can I expect to encounter? Thank

Re: FYI: 4D-Objects - Embedded Objects --> Save as file

2019-09-24 Thread Aparajita Fishman via 4D_Tech
> Save objectText to file > > Opened the file in BBEdit: > { > "Para1": "2019-09-24", > "Para2": 36170, > "ActivationCode": "activationCode", > "Embeded": { > "SomePict": "[object Picture]", > "someText": "TestText", >

RE: [v17.3] - Clear 4D-Oject

2019-09-24 Thread Aparajita Fishman via 4D_Tech
> Is there a simpler way to clear/destroy a 4D-Object than to loop trough it? Unless it has circular references, there is no need to explicitly clear it. It will be cleared automatically when the variable goes out of scope. If there are circular references, they should be set to null. $a:=New

Re: FYI: 4D-Objects - Embedded Objects --> Save as file

2019-09-24 Thread Kirk Brooks via 4D_Tech
Tim, Do you have to Base64 encode the picture to store it in the JSON file? On Tue, Sep 24, 2019 at 10:28 AM Tim Nevels via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Picture object properties only store a reference to the picture, hence the > “[object Picture]” property value. JSON Stringify

Re: FYI: 4D-Objects - Embedded Objects --> Save as file

2019-09-24 Thread Tim Nevels via 4D_Tech
On Sep 24, 2019, at 4:29 PM, Jörg Knebel wrote: > I tried the following (pseudo code): > > Create an object > Fill the object with some stuff > > Create another object and filled it with stuff including a picture > > Put the second object into the first. > > JSON Stringify($MyGreatObj) > >

MSSQL and stored procedure calling from 4D

2019-09-24 Thread Developer Myraid via 4D_Tech
In case that it might be useful to someone passing parameters to an MSSQL storedprocedure and getting the results // MSSQL (microsoft sql server) from 4D ( appears to work in compiled and interpreted mode ) // this runs server side which is a windows device, though could work on any device

Re: [v17.3] - Clear 4D-Oject

2019-09-24 Thread Kirk Brooks via 4D_Tech
On Mon, Sep 23, 2019 at 11:42 PM Christian Sakowski via 4D_Tech < 4d_tech@lists.4d.com> wrote: > > I thought that only clears a reference to the object, not the object > itself. > > Depends, > > if the ref-counter goes to 0, the object itself will be cleared too. > That's why I prefer Wayne's

Re: [v17.3] - Clear 4D-Oject

2019-09-24 Thread Christian Sakowski via 4D_Tech
> I thought that only clears a reference to the object, not the object itself. Depends, if the ref-counter goes to 0, the object itself will be cleared too. -- Grüße/Regards, [heubach-media] | Christian Sakowski christian.sakow...@heubach-media.de Tel: +49/(0)40/41 455 455 > Am 24.09.2019

Re: [v17.3] - Clear 4D-Oject

2019-09-24 Thread Reiner Kief via 4D_Tech
I thought that only clears a reference to the object, not the object itself. Reiner Kief Germany > Am 24.09.2019 um 02:15 schrieb Lee Hinde via 4D_Tech <4d_tech@lists.4d.com>: > > Clear variable? ** 4D Internet Users Group