From Xojo Documentation


WebRadioGroup.ValueChanged(button As WebRadioButton)

New in 2020r1

Supported for all project types and targets.

The selected radio button has been changed.


Use the SelectedRowIndex property to determine which radio button was pressed..

Sample Code

This code in the ValueChanged event of a default WebRadioGroup tells you which radio button was pressed by position/index:

Select Case Me.SelectedRowIndex
Case 0
MessageBox("You clicked the top button.")
Case 1
MessageBox("You clicked the bottom button.")
End Select

You can also use the SelectedRowValue method to the selected radio button based on its caption:

Select Case Me.SelectedRowValue
Case "First"
MessageBox("First button")
Case "Second"
MessageBox("Second button")
End Select

See Also

WebRadioGroup.SelectedRowIndex property, WebRadioGroup.SelectedRowValue method, WebRadioButton class.