WebRadioGroup.SelectedCell

From Xojo Documentation

Method


WebRadioGroup.SelectedCell() As Pair

New in 2010r4

Supported for all project types and targets.

Returns the row and column indexes (as a Pair) of the selected radio button.

Notes

Use SelectedCell in the SelectionChanged event to determine which radio button was clicked. Since SelectedCell is a Pair, the Left property represents the row index and the Right property represents the column index. The indexes are zero-based.

Example

The default WebRadioGroup has two Rows and one Column. To determine which radio button was clicked, simply test the Row index. For example:

Dim p As Pair

p = Me.SelectedCell
Select Case p.Left
Case 0
MsgBox("You clicked the first button.")
Case 1
MsgBox("You clicked the second button.")
End Select

See Also

Pair class