If there is a lot of back and forth adding and deleting which will happen then you may use a List/KVS/Map to organize items and small routine to refresh those items in spinner.
If you use B4XComboBox, not the conventional spinner (you need XUI Views Library) checked, you can have the items in a list and do something like this to replace an item with a new one:
B4X:
Dim lstItems As List
lstItems.Initialize
lstItems.AddAll(Array As String("a", "b", "z", "d", "e", "f"))
lstItems.Set(2, "c")
B4XComboBox1.cmbBox.Clear
B4XComboBox1.SetItems(lstItems) 'the new list in the combo will be: a,b,c,d,e,f
Added this 5 minutes later: You can probably use the conventional spinner also:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.