Hi All,
I have a form with 5 labels (Label1,Label2,Label3,Label4,Label5)
I want to be able to set the .text of each label within a loop and also how many labels to write to.
I found an example but it doesn't write the text to the label.
Anyone know how to do it?
Thanks
I have a form with 5 labels (Label1,Label2,Label3,Label4,Label5)
I want to be able to set the .text of each label within a loop and also how many labels to write to.
I found an example but it doesn't write the text to the label.
B4X:
Process Globals
Private Label1 As Label
Private Label2 As Label
Private Label3 As Label
Private Label4 As Label
Private Label5 As Label
Private lbls() As Label
End Sub
'
Sub AppStart (Form1 As Form, Args() As String)
'
lbls = Array As Label (Label1,Label2,Label3,Label4,Label5)
'
For i = 0 To lbls.Length -1
lbls(i).Initialize("lbls")
lbls(i).Tag = i + 1
lbls(i).text = i + 1
Next
'
Anyone know how to do it?
Thanks