F fatman Active Member Licensed User Longtime User Apr 12, 2014 #1 Hi to all, I am currently writing an app with app 330 labels. Instead of doing something like this: label1.text = "a" label2.text = "b" etc . I´d like to have a more "elegant" approach. Someting like that dim i as int I=1 label(i).text ="a" i = i + 1 label(i).text ="b" Not exactly like this- but in a loop of course. Any hints are welcome... Fatman
Hi to all, I am currently writing an app with app 330 labels. Instead of doing something like this: label1.text = "a" label2.text = "b" etc . I´d like to have a more "elegant" approach. Someting like that dim i as int I=1 label(i).text ="a" i = i + 1 label(i).text ="b" Not exactly like this- but in a loop of course. Any hints are welcome... Fatman
NJDude Expert Licensed User Longtime User Apr 12, 2014 #2 Are those labels created with the designer or by code?, are those values static? Upvote 0
F fatman Active Member Licensed User Longtime User Apr 12, 2014 #3 NJDude said: Are those labels created with the designer or by code?, are those values static? Click to expand... Thx for your interest NJDude, after a little bit of thinking i will give xngrid by Stefano Busetto a chance. Think it has all I need, an "indexed" approach. Thank you anyway! Fatman Upvote 0
NJDude said: Are those labels created with the designer or by code?, are those values static? Click to expand... Thx for your interest NJDude, after a little bit of thinking i will give xngrid by Stefano Busetto a chance. Think it has all I need, an "indexed" approach. Thank you anyway! Fatman
LucaMs Expert Licensed User Longtime User Apr 12, 2014 #4 Make sure you have the need for so many labels Upvote 0