Function ClassObject() Foundation
Retrieves the class object of any class.
ClassObject( <cClassName> ) --> oClassObject | NIL
The function returns the class object of the class with the name <cClassName>. The return value is NIL when the class does not exist.
The class object of any class can be retrieved with the ClassObject() function. This includes both static and dynamic classes. Static classes are known at compile time and have a class function. They already exist in Xbase++ or are declared within CLASS...ENDCLASS. In contrast, a dynamic class is created at runtime by the ClassCreate() function. Dynamic classes have no class function but are represented only by their class object.
The function ClassObject() is especially useful for detecting whether or not a dynamic class already exists in a program, whereas the existence of static classes can be checked with the Type() function.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.