WebSegmentedControl.ListIndex

From Xojo Documentation

Property (As Integer )
aWebSegmentedControl.ListIndex = newIntegerValue
or
IntegerValue = aWebSegmentedControl.ListIndex

New in 2010r4

Supported for all project types and targets.

Gets or sets the index of the first selected segment. It returns -1 if no segment is selected.

Notes

If SelectionType is Single, then each selection changes the value of ListIndex. If SelectionType is Multiple, then subsequent selections do not change the value of ListIndex. If SelectionType is None, then ListIndex returns -1 even when segments are clicked.

Example

This code in the Open event handler selects the second segment:

Me.ListIndex = 1