lundi 23 mars 2020

How to refer to controls using variable in a loop?

I have labels named: 'label1', 'label2', ...'label16' I want to assign a random number to all of them.

Something like this could work but I don't know the syntax ''' for i = 1 to 16 label(i).text = Math.Ceiling(Rnd() * 99) next ''' Your suggestions would be appreciated...




Aucun commentaire:

Enregistrer un commentaire