Topic: APLX Help : System Classes : Methods : Delete
[ Previous | Next | Contents | Index | APL Home ]

www.microapl.co.uk

The 'Delete' method


Argument: None
Result: None

Valid for: Any object except the System object, but usually applied to a Window, Document or Dialog.

The Delete method destroys an object and releases all the memory it uses. After you have deleted an object, it can no longer be re-opened and you can no longer read or set its properties. If the object contains other objects, they are also destroyed, so normally you do not need explicitly to destroy child objects. You should always delete a window which will no longer be needed, since otherwise the object continues to use system memory (until APLX terminates execution, when all objects are deleted automatically). If you created it using ⎕NEW, it will automatically be deleted when the last reference to it is erased from the workspace.

When an object is deleted, the onDestroy callback of the object is invoked,


Topic: APLX Help : System Classes : Methods : Delete
[ Previous | Next | Contents | Index | APL Home ]