Hello,
when I fill a B4XCombobox then I can not choose the first option. I first have to choose another option, and after that I can choose the first option.
How do I solve that?
I must be forgetting something, I think. As it looks like something is already chosen, but it is not.
it's filled like:
Then it's picked like:
Thanks for any help.
when I fill a B4XCombobox then I can not choose the first option. I first have to choose another option, and after that I can choose the first option.
How do I solve that?
I must be forgetting something, I think. As it looks like something is already chosen, but it is not.
it's filled like:
B4X:
ListOfAlbums.Initialize
If job.Success Then
Dim res As String
res = job.GetString
Log("Response from server albums: " & res)
Dim parser As JSONParser
parser.Initialize(res)
Dim items As List
items.Initialize
Dim list As List= res.As(JSON).ToList
For Each colroot As Map In list
items.Add(colroot.Get("albumname"))
Next
B4XComboBox1Albums.SetItems(items)
Else
Log("ERROR: " & job.ErrorMessage)
End If
Then it's picked like:
B4X:
Private Sub B4XComboBox1Albums_SelectedIndexChanged (Index As Int)
Dim albnme As String
albnme = B4XComboBox1Albums.cmbBox.GetItem(Index)
Log("albnme= " & albnme)
'''''do other stuff after selecting choice........
End Sub
Thanks for any help.