Destroy_Object - cObject

Sent when an object is about to be destroyed

Type: Event

Parameters: None

Procedure Destroy_Object 


The Destroy_Object event is sent to an object when it is about to be destroyed. It can be used to handle any additional processing required to destroy the object.

Procedure Destroy_Object
    Send DoWriteContentsToFile
    Forward Send Destroy_Object // must be sent

You should never send the messages Construct_Object or Destroy_Object. These are event methods that are automatically executed whenever an object is being created or destroyed. Objects are constructed when an object declaration statement is executed. If you wish to manually destroy an object you should execute the Destroy message.

For more information refer to: the Destroy method and Dynamic Objects.


See Also

Create | Destroy