DesktopRadioGroup.SelectedIndex

From Xojo Documentation

Property (As Integer )
aDesktopRadioGroup.SelectedIndex = newIntegerValue
or
IntegerValue = aDesktopRadioGroup.SelectedIndex

New in 2021r3

Supported for all project types and targets.

Used to get or set the selected item number

Notes

A value of -1 means no selection. SelectedIndex may be set using the Properties pane to set the default value of RadioGroup control. If you use the InitialValue property to populate the RadioGroup control and set a value of SelectedIndex that corresponds to a default item, that item will be displayed in the IDE.

Example

The following example changes the selected item to the third item:

FruitGroup.SelectedIndex = 2