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 o

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 sugg

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

2019-09-23 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-23 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 (4

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

2019-09-23 Thread Wayne Stewart via 4D_Tech
Jörg, I would suggest you use New Object again, assuming you want the object to still exist but just be empty. C_OBJECT($MyObject_o;$MyOtherObject_o) $MyObject_o:=New object("Wombats";"Are Cute") $MyOtherObject_o:=New object("Echidnas";"Are NOT cuddly") $MyObject_o:=New object // $MyObject_o is

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

2019-09-23 Thread Jörg Knebel via 4D_Tech
> On 24 Sep 2019, at 10:21 AEST, Randy Engle via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Clear Variable (object) Arrrgh, that’s it - Thanks ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html O

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

2019-09-23 Thread Randy Engle via 4D_Tech
Clear Variable (object) ??? Randy Engle -Original Message- From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of Jörg Knebel via 4D_Tech Sent: Monday, September 23, 2019 5:02 PM To: 4D Tech Mailing List Technical <4d_tech@lists.4d.com> Cc: Jörg Knebel Subject: [v17.3

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

2019-09-23 Thread Lee Hinde via 4D_Tech
Clear variable? > On Sep 23, 2019, at 5:01 PM, Jörg Knebel via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > G’day, > > Is there a simpler way to clear/destroy a 4D-Object than to loop trough it? > > I think of something already implemented in ObjectTools - OT Clear(ObjHandle) > / OT Clear (All

[v17.3] - Clear 4D-Oject

2019-09-23 Thread Jörg Knebel via 4D_Tech
G’day, Is there a simpler way to clear/destroy a 4D-Object than to loop trough it? I think of something already implemented in ObjectTools - OT Clear(ObjHandle) / OT Clear (All) Thanks Cheers Jörg ** 4D Internet Users Group (4