Method Abstract():isDerivedFrom() Foundation

Checks if an object belongs to or is derived from a particular class.

Syntax
:isDerivedFrom( <cClassName>|<oClassObject> ) --> lIsDerived
Parameters
<cClassName>
A character string containing the name of the class an object belongs to or is derived from.
<oClassObject>
Alternatively, the class object can be passed instead of the class name.
Return

The method returns .T. (true) if the object executing the method belongs to or is derived from the specified class.

Description

This method is used to check if an unknown object has features of a known class. This is especially useful for event driven programming or when classes are inherited from other classes.

Feedback

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.