Android Question SearchView-question about index

put the items in a list.. then you can find the index using this code

Code:
Dim List1 As List
List1 = File.ReadList(File.DirDefaultExternal, "items.txt")


Sub SearchView1_ItemClick(Value As String)
   
log(List1.IndexOf(Value))
       
     
End Sub
 
Upvote 0
@ronel..Thank you very much for pointing out, now it works as it should.
Code:
Sub SearchView1_ItemClick(Value As String)
    dim idx as int
    idx=cities.IndexOf(Value)
end sub
 
Last edited:
Upvote 0
Back
Top