<OBJECT>.HAS_METHOD()
Syntax
Result_Flag as L = <OBJECT>.HAS_METHOD( Method_Name as C )
|
Argument |
Description |
|
Method_Name |
The name of a method. |
Description
The <OBJECT>.HAS_METHOD() method applies to:
Alpha Five (for <OBJECT> use the keyword "A5")
Control Panel (for <OBJECT> use the keyword "CONTROLPANEL")
Browses (for <OBJECT> use either the <BROWSE> pointer or the name of the browse)
Forms (for <OBJECT> use either the <FORM> pointer or the name of the form)
Form Controls (for <OBJECT> use the <CONTROL> pointer or the address of the control)
The <OBJECT>.HAS_METHOD() method returns .T. (TRUE) if the <name> object has the specified method; otherwise, it returns .F. (FALSE).
Supported By
Alpha Five Version 5 and Above
Limitations
Desktop applications only.
Example
|
dim ptr as P ptr = form.load("Travel Time") ? ptr.Has_Method("foo") à.F. ? ptr.Has_Method("Name") à.T. |
See Also