WebSegmentedControl.Action

From Xojo Documentation

Event


WebSegmentedControl.Action(SegmentIndex as Integer)

New in 2010r4

Supported for all project types and targets.

One of the buttons was clicked, either by the user or in code. SegmentIndex is zero-based.

Example

This code checks to see which segment was selected:

Select Case SegmentIndex
Case 0 // First segment
MessageBox("First Segment")
Case 1 // Second segment
MessageBox("Second segment")
End Select