Directives
DROP OBJECT Delete Object
 
Format DROP OBJECT obj_id
 
Where:
 
obj_id Object Identifier
 
Description The DROP OBJECT directive is used in Object Oriented Programming to delete an object.
DROP OBJECT, DELETE OBJECT, and REF( ) can all be used to delete an object.
Only objects whose reference count is 1 can be deleted. Once an object is destroyed, its identifier may be re-assigned to another object; although, this is not recommended.
 
All objects are destroyed when the application issues a START directive or if the END
directive is entered at command mode.
 
REF (READ obj_id) returns the current reference count value. All calls to REF ( )
return the current reference count (or 0, if deleted).
 
See Also Object Oriented Programming
DEF CLASS Define Object Class
DROP CLASS Delete Class Definition
FUNCTION Declare Object Method
LIKE Inherit Properties
LOAD CLASS Pre-Load Class Definition
LOCAL Designation of Local Data
PROGRAM Create/Assign Program File
PROPERTY Declare Object Properties
RENAME CLASS Change Name of Class
STATIC Add Local Properties at Runtime
NEW( ) Function
REF( ) Function