Click or drag to resize

Abstract.ClassDescribe Method

X#
Reflects the class definition

Namespace:  XSharp.XPP
Assembly:  XSharp.XPP (in XSharp.XPP.dll) Version: 2.19
Syntax
 VIRTUAL METHOD ClassDescribe(
	uInfo
) AS ARRAY CLIPPER
Request Example View Source

Parameters

uInfo (Optional)
Type: Usual
A constant from must be used for this parameter. It defaults to CLASS_DESCR_ALL and defines the type of information included in the return value.

Return Value

Type: Array
If <uInfo> is omitted or set to CLASS_DESCR_ALL, an array with four elements is returned. They contain the information resulting from passing one of the following constants to this method:
X#
1obj:classDescribe()  -->   { CLASS_DESCR_CLASSNAME   , ;
2CLASS_DESCR_SUPERCLASSES, ;
3CLASS_DESCR_MEMBERS     , ;
4CLASS_DESCR_METHODS       }
The elements of this array reflect the parameter profile of the function ClassCreate(). See the remarks section for detailed information about the returned array
Remarks
The constants for ClassDescribe are included in XSharp.XPP.DLL and you do not need to include Class.CH anymore.
Allowed constants are:
ConstantReturn value
CLASS_DESCR_ALL *)All available information in one array.
CLASS_DESCR_CLASSNAMEClass name as character string
CLASS_DESCR_SUPERCLASSESOne-dimensional array holding the class objects of all superclasses
CLASS_DESCR_MEMBERS Two dimensional array with 3-columns holding information about member variables.
CLASS_MEMBER_NAMECharacter string representing the name of a single member variableCLASS_MEMBER_ATTRMember variable attributes as numericCLASS_MEMBER_TYPEReserved
CLASS_DESCR_METHODS Two dimensional array with 3-columns array holding information about methods. CLASS_METHOD_NAMECharacter string with the name of the methodCLASS_METHOD_ATTRMethod attributes as numericCLASS_METHOD_BLOCKMethod code block, if the method was dynamically created with ClassCreate()CLASS_METHOD_VARNAMEThe name of the redirected variable if it isan ACCESS|ASSIGN methodCLASS_METHOD_TYPEReserved
CLASS_DESCR_SUPERDETAILSNot suppored by X#
See Also