Android Question Spinner.IndexOf not returning expected value

toby

Well-Known Member
Licensed User
Longtime User
Could someone tell me what's wrong with the following code?

Spinner View:
    spinner1.AddAll(Array As Int(6,8, 10,12,14,16,18,20,22,24,26,28,30))
    Dim i As Int=spinner1.IndexOf(10)
    log(i) '-1 returned while  expecting 2 (10 is the 3rd item on the spinner list)
 
Top