This function checks if the focus was successfully set on the specified button.
object.SetFocus()
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISButton interface |
bool
Set focus on the specified button and display the result of the focus change.
Dim aButton
Dim aResult
Set aButton = Form.Controls_("btnDemo")
aResult = aButton.SetFocus
Profile.MsgBox(aResult)