E Electrocutioner Member Licensed User Longtime User Nov 12, 2012 #1 B4X: Sub rbtTest_CheckedChange(Checked As Boolean) Dim rbt As RadioButton rbt = Sender RadioButtonIndex = rbt.Tag UpdateCheckBoxes End Sub what form is "rbt" in that I can determine which button was selected. I wish to branch program code from here to handle the button selected. Thanks for your help!
B4X: Sub rbtTest_CheckedChange(Checked As Boolean) Dim rbt As RadioButton rbt = Sender RadioButtonIndex = rbt.Tag UpdateCheckBoxes End Sub what form is "rbt" in that I can determine which button was selected. I wish to branch program code from here to handle the button selected. Thanks for your help!
mc73 Well-Known Member Licensed User Longtime User Nov 12, 2012 #2 If I understand correcty, all you have to do is use the radioButtonIndex in a select clause: B4X: if checked then select radioButtonIndex case 0 'do something for this case 1 'and for this end select end if Upvote 0
If I understand correcty, all you have to do is use the radioButtonIndex in a select clause: B4X: if checked then select radioButtonIndex case 0 'do something for this case 1 'and for this end select end if