Template
Function
Name
__objHasMethod()
Category
API
Subcategory
Objects
Oneliner
Determine whether a symbol exist in object as METHOD
Syntax
__objHasMethod( <oObject>, <cSymbol> ) --> lExist
Arguments
<oObject> is an object to scan.
<cSymbol> is the name of the symbol to look for.
Returns
__objHasMethod() return .T. if the given <cSymbol> exist as METHOD (class function) in object <oObject), .F. if it does not exist.
Description
__objHasMethod() is a low level class support function that let you find out if a symbol is a class function in a given object.
Examples
oB := TBrowseNew( 0, 0, 24, 79 ) ? __objHasMethod( oB, "nLeft" ) // .F. since this is a VAR ? __objHasMethod( oB, "FixBugs" ) // hopefully this should be .F. ? __objHasMethod( oB, "Left" ) // this should return .T.
Compliance
Harbour
Files
Library is core
Seealso
__objGetMethodList(), __objGetMsgList(), __objHasData()
Pingback: Harbour Internal Functions | Viva Clipper !
Pingback: Harbour Objects Functions | Viva Clipper !
Pingback: Harbour RG Summary | Viva Clipper !