Screen.SetFocus

Screen.SetFocus ( 

number ControlID )

Example 1

Screen.SetFocus (CTRL_EDIT_01);

Gives focus to the edit field control with control ID CTRL_EDIT_01.

Example 2

Screen.SetFocus (nControlID);

 Gives focus to the control who's control ID is referenced in variable "nControlID".

See also:  Related Actions