Sets focus to the object, optional flags 'E' - activate and edit cell in browse, 'A' - additive activate in design mode.
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.
To set focus to the Address field on the Sales form:
To set focus to the Sales form:
This code attached to the OnPush event of a button on a form sets focus to the Address field:
Desktop applications only.