ProvideX V8.20 > Language Reference > 2. Directives
103
DROP OBJECT Directive
       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.
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.
Objects are destroyed when the application issues a START directive.
REF (READ obj_id) returns the current reference count value. All calls to REF( )
return the current reference count (or 0, if deleted).
Note: The DELETE OBJECT and DROP OBJECT directives can be used interchangeably
regardless of the object being dropped. For further information, refer to the DELETE
OBJECT Directive, p.83
See Also
Object Oriented Programming, p.21
DEF CLASS Define Object Class, p.64
DROP CLASS Delete Class Definition, p.101
FUNCTION Declare Object Method, p.136
LIKE Inherit Properties, p.173
LOAD CLASS Pre-Load Class Definition, p.194
LOCAL Designation of Local Data, p.196
PROGRAM Create/Assign Program File, p.257
PROPERTY Declare Object Properties, p.259
RENAME CLASS Change Name of Class, p.281
STATIC Add Local Properties at Runtime, p.327
NEW( ) Function, p.487
REF( ) Function, p.510