SegmentedButton.SelectedSegment
From Xojo Documentation
Property (As Segment )
aSegmentedButton.SelectedSegment = newSegmentValue
or
SegmentValue = aSegmentedButton.SelectedSegment
New in 2019r2
Supported for all project types and targets.
or
SegmentValue = aSegmentedButton.SelectedSegment
New in 2019r2
Supported for all project types and targets.
Provides the Segment at the requested index.