>How can you get the value of a form object while in a for-next loop? I have 42 objects (x01 thru x42) and I need to know the value of the x?? that matches the value of the for-next count. I've tried using &variable and (variable) with the code inside but can't make it work. Any Help?
for i = 1 to 42
obj = eval("ThisForm.x" + padl(i, 2, "0")
obj.Top = ...
obj.Caption = ...
...
next
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)