Android Question need an array of 100 labels??

persianpowerman1

Active Member
Licensed User
Longtime User
is there an easier way to do this than have to type all 100??
eg..

B4X:
dim labelrange() as label
Labelrange = Array As Label(Label1, Label2, Label3, Label4..... Label99, Label100)

i need the array to have 100 labels

YO!han
 

notedop

Member
Licensed User
Longtime User
have you created the labels all manual or are you using some sort of a loop?
You could add the label to the array or list as soon as you create and configured it.
 
Upvote 0

Beja

Expert
Licensed User
Longtime User
You can dim the index value (0 to 99), and then parse it to the common name of the array and
refer to it in a loop that creates the labels.

my two cents!


.
 
Upvote 0

Theera

Well-Known Member
Licensed User
Longtime User
Upvote 0
Top