ISRadioButton.SetFocus

Description

This function checks if the focus was successfully set on the specified radio button.

Syntax

object.SetFocus()

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

Return Value

bool

Returns True if the focus was successfully set on the specified radio button.

Example

Set focus on the specified radio button and display the result of the focus change.

Dim aControl
Dim aResult

Set aControl = Form.Controls_("rbCaseOne")
aResult = aControl.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