faholet540
Member
Hi for all, i need a bit help with this plz.
Im using this code and works fine, but i need some more.
In the last line (the log) i get the text of the item clicked.
I need asign a tag in each item and when clicked i need read the tag.
I hope any can help me.
Thanks
Im using this code and works fine, but i need some more.
this code:
Base = Activity
Dialog.Initialize (Base)
SearchTemplate.Initialize
Dim Items As List
Items.Initialize
Wait For ( Families(pnl1.Tag, Items) ) Complete (ResultF As Boolean)
SearchTemplate.SetItems(Items)
SearchTemplate.Resize(90%x, 90%y)
Dim rs As ResumableSub = Dialog.ShowTemplate(SearchTemplate, "", "", "CANCEL")
Dim cancelbtn As B4XView = Dialog.GetButton(xui.DialogResponse_Cancel)
cancelbtn.Width = 120dip
cancelbtn.Left = cancelbtn.Left - 50dip
Wait For ( rs ) Complete (Result As Int)
If Result = xui.DialogResponse_Positive Then
log(SearchTemplate.SelectedItem)
In the last line (the log) i get the text of the item clicked.
I need asign a tag in each item and when clicked i need read the tag.
I hope any can help me.
Thanks