multiple views: access instance

Spacewalker

Member
Licensed User
Longtime User
Hallo,

I am creating a couple of lables (multiple instances) programmatically like this:

B4X:
for i=0 to 10

Dim b As Label
         
b.Initialize("label")
b.TextSize = 30
b.tag=i

next
After the loop is finished I need to access a specific instance and change its text, for example the third lable.
If I had an array I could probably do it like this:

B4X:
b(2?).text = "Test"
How can I do this?

thx
Heinz
 

Spacewalker

Member
Licensed User
Longtime User
yes, but sender can be used only with an event (like click..?)

I need to loop through all lables without having a event
 
Upvote 0
Top