R rafaelmotaquintana Active Member Licensed User Jan 20, 2016 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User Jan 21, 2016 #2 Keep the list of items and then get the index with ListOfItems.IndexOf(Value) Upvote 0
R rafaelmotaquintana Active Member Licensed User Jan 21, 2016 #3 Erel said: Keep the list of items and then get the index with ListOfItems.IndexOf(Value) Click to expand... 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
Erel said: Keep the list of items and then get the index with ListOfItems.IndexOf(Value) Click to expand... 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
ilan Expert Licensed User Longtime User Jan 21, 2016 #4 Check also in logs if the value that you get is the clicked value Log(value) Upvote 0
R rafaelmotaquintana Active Member Licensed User Jan 21, 2016 #5 ilan said: Check also in logs if the value that you get is the clicked value Log(value) Click to expand... 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
ilan said: Check also in logs if the value that you get is the clicked value Log(value) Click to expand... 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.