to
delete
statementList
end
delete
The to delete
handler defines the behavior of a user-defined object when it is deleted. When a script requests the deletion of a user-defined object, the statements in the to delete
handler are executed, then the object is destroyed, then other objects are assigned new numbers.
This structure is only valid inside an object type
structure.