MobileSegmentedButton.AddSegment

From Xojo Documentation

Method

MobileSegmentedButton.AddSegment(item As MobileSegment)

Supported on Mobile.

Adds a segment to the end.

Sample Code

Add segments in the Opening event:

Me.AddSegment(New MobileSegment("Earth"))
Me.AddSegment(New MobileSegment("Sun"))
Me.AddSegment(New MobileSegment("Moon"))