From Xojo Documentation

Revision as of 14:30, 14 August 2017 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.


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.


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