WebRadioGroup.SelectedTag

From Xojo Documentation

Method

WebRadioGroup.SelectedTag() As Variant

New in 2010r4

Supported for all project types and targets.

Returns the CellTag (as a Variant) of the selected radio button.

Examples

The following code in the SelectionChanged event gets the Tag of the selected radio button. The Tag was assigned in the Open event using CellTag.

Var s As String
s = Me.SelectedTag

The following code in the SelectionChanged event tests which radio button was clicked. It assumes the default configuration of a RadioGroup of two rows and one column.

Select Case Me.SelectedTag
Case "Top"
MessageBox("button 0")
Case "Bottom"
MessageBox("button 1")
End Select