> 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
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
> 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
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
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
> 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
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
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
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
9 matches
Mail list logo