S Spacewalker Member Licensed User Longtime User Oct 22, 2012 #1 Hallo, I am creating a couple of lables (multiple instances) programmatically like this: Code: 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: Code: b(2?).text = "Test" How can I do this? thx Heinz
Hallo, I am creating a couple of lables (multiple instances) programmatically like this: Code: 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: Code: b(2?).text = "Test" How can I do this? thx Heinz
S Spacewalker Member Licensed User Longtime User Oct 22, 2012 #3 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
yes, but sender can be used only with an event (like click..?) I need to loop through all lables without having a event
thedesolatesoul Expert Licensed User Longtime User Oct 22, 2012 #4 Code: Dim b(11) As Label for i=0 to 10 b(i).Initialize("label") b(i).TextSize = 30 b(i).tag=i next now you can do Code: b(2) = "heello" Upvote 0
Code: Dim b(11) As Label for i=0 to 10 b(i).Initialize("label") b(i).TextSize = 30 b(i).tag=i next now you can do Code: b(2) = "heello"