## The `onDestroy' callback

Event number: 27
Generated for: Any object except the System object

When an object is deleted, the `onDestroy` callback (if any) for it is triggered. However, the object itself no longer exists when the callback function runs, and so it is too late to reference any properties of the object. For the same reason, ŚWSELF cannot be used in an `onDestroy` callback.

Topic: APLX Help : System Classes : Callbacks : onDestroy

[ Previous | Next | Contents | Index ]