I have a need for setting tag property for buttons from a SQLlite table when program starts but can't figure out how to iterate trough control's and get a button's name property. Is this doable ? Tried to find info in beginners guide and forum without success
Any help appreciated
Regards
B4X:
Sub PopulateTagList()
Dim ls As List
ls.Initialize
DBUtils.ExecuteList2(SQL1,"SELECT Button FROM IR_codes",Null,0,ls)' Button name property
For i = 0 To ls.Size - 1
Private tmptext As String
tmptext = ls.Get(i)
' iterate trough buttons and put IR_code in button.tag when NAME MATCH IS FOUND
Log(tmptext)
Next
End Sub
Regards