Hi,
I'm new in Basic4Android
I have to generate a list of labels. I design one with the designer, then i want to use it to generate all the others into my program.
I write this sub :
Sub DisplayLabelList (lbl0 As Label)
Dim lblList(5) As Label
Dim i As Int
For i=0 To lblList.Length - 1
lblList(i).Initialize("")
lblList(i) = lbl0
lblList(i).Top = i * 20
lblList(i).Text = i
Next
End Sub
Then I call this Sub with the lblModel designed
DisplayLabelList(lblModel)
When running, I have just the last one displayed. Better, It seems that all the lblList(i) have the same values (same text and same position) and are all changed at each iteration.
How to do for having lblList(0).Top = 0 and lblList(0).Text = "0", lblList(1).Top = 20 and lblList(1).Text = "0", ... and all the others values (Left, Width, ...) same as my Model ?
Thanks