ISEdit.SetFocus

Description

This function checks if the focus was successfully set on the specified edit control.

Syntax

object.SetFocus()

Part Attribute Type Description
object Required
The object always implements the ISEdit interface

Return Value

bool

Returns True if the focus was successfully set on the specified edit control.

Example

Set focus on the specified edit control and display the result of the focus change.

Dim aEdit
Dim aResult

Set aEdit = Form.Controls_("edtInform")
aResult = aEdit.SetFocus

Profile.MsgBox(aResult) 
Note: This macro should be executed in any event handler of the form control.

Version information

Added in v7.8.0