__objGetMsgList()
Return names of all DATA or METHOD for a given object
- Syntax
-
- __objGetMsgList( <oObject>, [<lData>] ) --> aNames
- Arguments
-
- <oObject> is an object to scan.
- <lData> is an optional logical value that specifies the information to return. A value of .T. instruct the function to return list of all DATA names, .F. return list of all METHOD names. Default value is .T.
- Returns
-
- __objGetMsgList() return an array of character stings with all DATA names or all METHOD names for a given object. __objGetMsgList() would return an empty array {} if the given object does not contain the requested information.
- Description
-
- __objGetMsgList() is a low level class support function that let you find all instance variable or class functions names for a given object.
Examples
// show information about TBrowse class
oB := TBrowseNew( 0, 0, 24, 79 )
aData := __objGetMsgList( oB, .T. )
aMethod := __objGetMsgList( oB, .F. )
FOR i = 1 to len ( aData )
? "DATA name:", aData[ i ]
NEXT
FOR i = 1 to len ( aMethod )
? "METHOD name:", aMethod[ i ]
NEXT
- Status
- Ready
- Compliance
-
- __objGetMsgList() is a Harbour extension.
- Files
-
- Library is rtl
- See Also