From Xojo Documentation

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

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

New in 2021r3

Supported for all project types and targets.

Used to get or set the selected item number


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.


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

FruitGroup.SelectedIndex = 2