<OBJECT>.ACTIVATE()
Syntax
<OBJECT>.ACTIVATE()
Description
The <OBJECT>.ACTIVATE() method applies to:
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>.ACTIVATE() method sets focus to the object.
Supported By
Alpha Five Version 5 and Above
Limitations
Desktop applications only.
Example
To set focus to the Address field on the Sales form:
|
:Sales:Address.activate() |
To set focus to the Sales form:
|
:Sales.activate() |
This code attached to the OnPush event of a button on a form sets focus to the Address field:
|
parentform:Address.activate() |
See Also