From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As Boolean )
aDesktopRadioButton.Value = newBooleanValue
BooleanValue = aDesktopRadioButton.Value

New in 2021r3

Supported for all project types and targets.

Gets or sets the value of the radio button: True if the RadioButton is checked and False if it is not checked.

Sample Code

Displays the selected radio button for a collection of radio buttons in a Control Set:

Sub Pressed (Index As Integer)
MsgBox("You chose radio button " + index.ToString + ".")
End Sub

To select a specific RadioButton in a control set, you use its Index property in code to refer to the RadioButton whose value you want to set. For example, the following line sets the second RadioButton from code.

RadioButton1(1).Value = True // 0-based