I have a number of objects in my form, lets say they are labels.
label1
label2
label3
label4
label5
i want to change all the labels .caption using a loop:
for x = 1 to 5
label<x>.caption = 'test'
next x
but i dont know how to do this. For example, i tried
for x = 1 to 5
tmp = 'label' + x
tmp.caption = 'test'
next x
but it doesnt work out that way
could someone tell me how to handle this one?
thanks
label1
label2
label3
label4
label5
i want to change all the labels .caption using a loop:
for x = 1 to 5
label<x>.caption = 'test'
next x
but i dont know how to do this. For example, i tried
for x = 1 to 5
tmp = 'label' + x
tmp.caption = 'test'
next x
but it doesnt work out that way
could someone tell me how to handle this one?
thanks