Destroy - cObject¶
Include: Built in; no package required.
Destroys a dynamically created object.
Type: Procedure
Parameters¶
None.
Syntax¶
Procedure Destroy
Call¶
Send Destroy of hoObj
Description¶
Destroy destroys dynamically created objects. Sending Destroy to the null object or desktop object raises a DataFlex error. After Destroy, do not reuse the old handle.
Example¶
Procedure CreateAndDestroyObject
Handle hoObj
Get Create (RefClass(cObject)) to hoObj
Send Destroy of hoObj
End_Procedure