WebRadioGroup.SelectedCell
From Xojo Documentation
Method
This method is only available for Web applications. |
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:
Var 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
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