spinner triger

derez

Expert
Licensed User
Longtime User
spinner trigger

I use a list and a spinner to select from a list.
B4X:
Sub add_cities
Dim st As String

citylist.Initialize

citylist.Add("Afula,714825,3610545")
citylist.Add("Arad,710470,3460382")
.......
citylist.Add("Zefat,733484,3650905")

For i = 0 To citylist.Size-1
   st = citylist.Get(i)
   cityspin.Add(st.SubString2(0,st.IndexOf(",")))
Next
End Sub

When the first time that this line is run
B4X:
cityspin.Add(st.SubString2(0,st.IndexOf(",")))
the spinner's cityspin_ItemClick (Position As Int, Value As Object) is triggered.

I don't want this action so I have to filter it by a "first time" flag.
I think this is a bug.
 
Last edited:
Top