C Cody Gradert New Member Jan 14, 2020 #1 I want to reference my choice box selection in other parts of the code. For instance, if Choice box selection 1 is chosen, do this, but if selection 2 is chosen follow these rules. Can anyone help??
I want to reference my choice box selection in other parts of the code. For instance, if Choice box selection 1 is chosen, do this, but if selection 2 is chosen follow these rules. Can anyone help??
Erel B4X founder Staff member Licensed User Longtime User Jan 15, 2020 #2 Code: If ChoiceBox1.SelectedIndex = 0 Then ... 'or: Dim SelectedItem As String = ChoiceBox1.Items.Get(ChoiceBox1.SelectedIndex) If SelectedItem = "selection 1" Then Upvote 0
Code: If ChoiceBox1.SelectedIndex = 0 Then ... 'or: Dim SelectedItem As String = ChoiceBox1.Items.Get(ChoiceBox1.SelectedIndex) If SelectedItem = "selection 1" Then