Function IsMemberVar() Foundation
Checks if an object has a particular member variable
IsMemberVar( <oObject>, <cVarName>, [<nAttributes>] ) --> lExist
Constant | Equivalent in the class declaration |
---|---|
CLASS_HIDDEN | HIDDEN: |
CLASS_PROTECTED | PROTECTED: |
CLASS_EXPORTED *) | EXPORTED: |
|
Constant | Equivalent in the class declaration |
---|---|
VAR_ASSIGN_HIDDEN | VAR <cVarName> ASSIGNMENT HIDDEN |
VAR_ASSIGN_PROTECTED | VAR <cVarName> ASSIGNMENT PROTECTED |
VAR_ASSIGN_EXPORTED *) | VAR <cVarName> ASSIGNMENT EXPORTED |
|
Constant | Equivalent in the class declaration |
---|---|
VAR_INSTANCE | VAR <cVarName> |
VAR_CLASS | CLASS VAR <cVarName> |
VAR_CLASS_SHARED | CLASS VAR <cVarName> SHARED |
The return value is .T. (true) if the object has the member variable <cVarName>, otherwise it returns .F. (false).
The function IsMemberVar() is used to check if an object has a particular member variable. This is especially useful for objects of derived classes or dynamically created classes, or when accessing member variables with the macro operator. Together with IsMethod(), :className() and :isDerivedFrom(), IsMemberVar() offers a complete set of possibilities for analyzing objects at runtime.
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.