Click or drag to resize

Abstract.IsDerivedFrom Method

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

Namespace:  XSharp.XPP
Assembly:  XSharp.XPP (in XSharp.XPP.dll) Version: 2.19
Syntax
 METHOD IsDerivedFrom(
	uParent
) AS LOGIC CLIPPER
Request Example View Source

Parameters

uParent (Optional)
Type: Usual
A character string containing the name of the class an object belongs to or is derived from. Alternatively, the class object (System.Type) can be passed instead of the class name.

Return Value

Type: Logic
The method returns .T. (true) if the object executing the method belongs to or is derived from the specified class.
Remarks
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.
See Also