Radio Button State Properties
ButtonID
Gets a number that is used as reference when the control is part of a radio button group.
• JScript
var intID = RadioBtn.ButtonID ();
• VBScript
intID = RadioBtn.ButtonID
|
Element
|
Description
|
|
intID
|
Integer that is used to reference control in the radio button group.
|
Accommodates the conversion of legacy scripts from JScript and VBScript. This property returns the same result as the SelectedButton. For new implementations of the Radio Button group, use SelectedButton.
SetSelectedButton
Sets the index of the selected item in the Radio Button group. The index is one-based, meaning that the first item in the radio button has an index of 1.
When you set the SetSelectedButton property during the Start event, and the Run Advanced Control script on worksheet recalculate option is enabled, the user selection in the Radio Button group is reset during recalculation to the value specified in the script. To prevent this reset, initialize the radio button outside of the Start event.
• JScript
RadioBtn.SetSelectedButton(IntSet);
• VBScript
RadioBtn.SetSelectedButton = IntSet
• Python
RadioBtn.SetSelectedButton = IntSet
|
Element
|
Description
|
|
IntSet
|
The index of the selected item or item to select. The index is one-based.
|