I am using this code provided by @Mahares which works as expected Except the B4XComboBox1_SelectedIndexChanged only fires AFTER the second change.
I have found the same issue from this thread but it was never answered. Same issue
B4X:
Dim lstItems As List
lstItems.Initialize
Dim rs As ResultSet
Do While rs.NextRow
If rs.GetString("n").Contains("1") Then
lstItems.Add(cs.Initialize.Color(Colors.Green).Append(rs.GetString("n")).PopAll)
Else
lstItems.Add(cs.Initialize.Color(Colors.Red).Append(rs.GetString("n")).PopAll)
End If
Loop
rs.close
B4XComboBox1.SetItems(lstItems)
I have found the same issue from this thread but it was never answered. Same issue
Last edited: