Screen.GetFocus

number Screen.GetFocus ( 

 )

Example 1

nControlID = Screen.GetFocus();

Gets the control id of the object which currently has focus.

See also:  Related Actions