-
Hi,
I come from the Clipper programming.
In Clipper you could do something like that:
myMacro := "myVar" + "1"
now myMacro is equal to "myVar1"
if I use it in the code like this:
for &(myMacro)=1 to 20
..
next
It will be the same as if i did this:
for myVar1 = 1 to 20
..
next
Except that at run time I can pass any variable
name into that loop.
My question is, how to do the same thing in VB?
Thanx!
-
I don't think you can. The only chance you have would be the Eval() function.
-
I'm afraid that is a limitation of VB. I used that type of programming in the original
FoxPro 2.0 - I sadly miss that feature. :(