Android Question Need AutoCompleteedittext item clicked index

rafaelmotaquintana

Active Member
Licensed User
Beside getting the text in list, on an autocompleteedittext, I'd like to get the index clicked in the list showed. It is a way?
Thanks
 

rafaelmotaquintana

Active Member
Licensed User
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

rafaelmotaquintana

Active Member
Licensed User
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
Top