HBObject() > Methods for object inspection |
Checks if an object is kind of a class.
:isKindOf( <oObject>|<cClassName> ) --> lIsKindOf
The method returns .T. (true) if the object executing the method is kind of the specified class, otherwise .F. (false) is returned.
Method :isKindOf() is used to check if an object is either an instance of the specified class, or if it knows the same member variables and methods. The latter is the case when the class of <oObject> is a super class of self. A sub-class is always "kind of" a super class.
http://www.xHarbour.com