Link Search Menu Expand Document

Object.Delete Method

Explanation Disconnects the object from the object tree.

If the disconnected object is not referenced from anywhere, all connected child objects will also be disconnected in a chain.
Objects that are disconnected from the object tree and no longer referenced anywhere are deleted.
See Delete for more information.

Array object
Calling the Delete method on an element of an array deletes only that element (and its child objects).
As a result, subsequent elements are carried down by the array number (index)

Object reuse
As a general rule, objects disconnected from the object tree cannot be reused. Please note that objects may not work properly when reconnecting and reusing the object tree. In particular, do not reuse each class that inherits the DisplayObject class, such as buttons and text boxes.
Call format obj.Delete( )
Return value None
Arguments None
Exception None
Example of use
Function OnTouch(e) {
    //.Form1.Delete();
    //.Get("Form2.crs");
}
 
Related item DeleteChild, Append methods