Android Question Need AutoCompleteedittext item clicked index

Keep the list of items and then get the index with ListOfItems.IndexOf(Value)
I did it, always return 0.
First I used an array, teh copy the array to a list. And this always returns 0

Sub TxtAct_Descrip_ItemClick (Value As String)
Msgbox(wList.IndexOf(Value),"")
End Sub

wlist has a copy of all items
 
Upvote 0
Check also in logs if the value that you get is the clicked value

Log(value)
Found the problem. I was trying to form a dynamically autocomplete using SQL, but unfortunately the change event fires before the item click, changing my whole plan.
I'll try to figure out how to implement this.
 
Upvote 0
Back
Top