TomDuncan Active Member Licensed User Longtime User Jul 9, 2015 #1 Hi All, I have 5 ToggleButtons in my app. All in one group. Can I in code find which button has been selected. At the moment I am looking at all but their must be a way to find which. Also can I deselect all in one go. Tom
Hi All, I have 5 ToggleButtons in my app. All in one group. Can I in code find which button has been selected. At the moment I am looking at all but their must be a way to find which. Also can I deselect all in one go. Tom
sonicmayne Member Licensed User Longtime User Jul 9, 2015 #2 If you mean grouped in the same Event then this will work: B4X: Sub tglButton_SelectedChange(Selected As Boolean) Dim tgl As ToggleButton = Sender Log(tgl.Text) End Sub Remember to change the event name to your event name. Upvote 0
If you mean grouped in the same Event then this will work: B4X: Sub tglButton_SelectedChange(Selected As Boolean) Dim tgl As ToggleButton = Sender Log(tgl.Text) End Sub Remember to change the event name to your event name.
TomDuncan Active Member Licensed User Longtime User Jul 9, 2015 #3 Thanks for that, will test in the morning. Tom Upvote 0