Controls > Advanced Controls > Radio Button > Radio Button Methods
Radio Button Methods
SelectedButton Method
Returns the integer Button ID of the selected button in a radio button.
JScript
var intRet = RadioBtn.SelectedButton();
VBscript
intRet = RadioBtn.SelectedButton()
Element
Description
IntRet
The index of the selected item.
GetText
Gets the text of an item at a specified index. The index is zero based.
JScript
var strRet = RadioBtn.GetText(longIndex);
VBscript
strRet = RadioBtn.GetText(longIndex)
Element
Description
strRet
The string at the specified index.
longIndex
The integer index at which to find the text.
ResetContent
Clears the radio button by removing all strings from the group.
JScript
RadioBtn.ResetContent();
VBscript
RadioBtn.ResetContent()
AddButton
Creates a new button in the button group and sets the caption of that button. You can set this method using the Properties tab, or dynamically at run-time.
JScript
RadioBtn.AddButton(strItem);
VBscript
RadioBtn.AddButton(strItem)
Element
Description
strItem
A string to be added as the caption for the button.
Was this helpful?