|
-
Nov 10th, 2000, 12:31 PM
#1
Thread Starter
New Member
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!
 File not found!
Abort, Retry, Get a Beer...
L8r
-
Nov 10th, 2000, 12:52 PM
#2
Hyperactive Member
I don't think you can. The only chance you have would be the Eval() function.
-
Nov 10th, 2000, 07:37 PM
#3
Hyperactive Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|