> 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 object
$b:=New object(“a”;$a)
$a.b:=$b

// use them

// At end of method
$a.b:=null


> How the hell do I make $child and $root.details be empty?

You don’t. There’s no need to. Even if you are reassigning to a new object, 
there is absolutely no need to clear first.

- Aparajita
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to