Ryan Peter
Screenwriter
- Joined
- Sep 15, 1999
- Messages
- 1,220
I have some different variable names and object names such as myName1, myName2, myName3, etc. They all have the same name, just a different sequential number at the end. Now what I want to do is manipulate those variables in a Do While, or While/Wend loop.
So basically have it loop through and every time it has to go through the loop, the specific variable it attacks is incremented.
for exp.
While x < 21
i = 1
lblDisplay.Visible = True
lblDisplay.Caption = x
x + 1
i + 1
Wend
I could do this in JavaScript pretty well, but I can't seem to figure out how to do it in VB6.
Thanks if you can help!
So basically have it loop through and every time it has to go through the loop, the specific variable it attacks is incremented.
for exp.
While x < 21
i = 1
lblDisplay.Visible = True
lblDisplay.Caption = x
x + 1
i + 1
Wend
I could do this in JavaScript pretty well, but I can't seem to figure out how to do it in VB6.
Thanks if you can help!