Sub myComboBox_SelectedIndexChanged (Index As Int) working fine but myComboBox.SelectedIndex methods in others Subs return always "0". How can I check what the user chose?
Private iSelectedIndex as Int 'Global Var
Sub myComboBox_SelectedIndexChanged (Index As Int)
iSelectedIndex = Index
'................ more code ?
Sub MyOtherSub( )
Log(iSelectedIndex)
mangojack this working fine but it's possible not using global variable but use in other places in code myComboBox.SelectedIndex or myComboBox.SelectedItem?
B4X:
Sub button1_Click
label1.Text = myComboBox.SelectedIndex 'always show 0
End Sub