Control-SetFocus

Function Name dcl-Control-SetFocus
Syntax   (dcl-Control-SetFocus <CONTROL>)
Return Type Boolean (T if successful; otherwise NIL)
Applies To All Controls and Forms

This method sets the keyboard focus to the control if it is visible.

Note

Do not call this function inside your OnInitialize event handler to set the initial focus to a specific control. Instead, use the ZOrder function to put the desired focus control at the top of the Z/Tab order.