ProvideX V8.20 > Language Reference > 2. Directives
101
DROP CLASS Directive
         Delete Class Definition
Format
DROP CLASS class$
Where:
class$
Name of the class to be deleted. String expression.
Description
The DROP CLASS directive is used in Object Oriented Programming to delete a class
definition and all related information. Once a class definition is established, then it
may not be changed but it can be deleted and recreated using DROP CLASS.
Only class definitions that have no references to them may be deleted. This means
that no class can be deleted when:
· Any object exists which refers to this class.
· Any other class exists which refers to this class by its LIKE clause.
Any attempt to delete a class that has a reference to it will return an Error #50:
"Class in use or already defined".
All class definitions will be deleted when a START directive is issued. Either DROP
CLASS or DELETE CLASS can be used to delete a class definition.
See Also
Object Oriented Programming, p.21
DEF CLASS Define Object Class, p.64
DROP OBJECT Delete Object, p.103
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