HBObject() > Methods for object inspection xHarbour Developers Network  

oHBObject:isKindOf()

Checks if an object is kind of a class.

Syntax

:isKindOf( <oObject>|<cClassName> ) --> lIsKindOf

Arguments

<oObject>
This is a second object which is compared with self
<cClassName>
Alternatively, the class to compare self with can be specified as a character string holding the class name.

Return

The method returns .T. (true) if the object executing the method is kind of the specified class, otherwise .F. (false) is returned.

Description

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.


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe