Login | |
|
 |
RE: use a variable in a variable - 3/11/2008 11:45:35 PM
|
|
 |
|
| |
mbouchard
Posts: 1916
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
|
If I am reading you correctly then yes, you can use a variable in a variable. But I do not think your example would work as you are not setting Vartest_1_2 and you have an extra _ in your sub call. If you wanted to combine varTest_1_2 and count you can do something like the below. dim varTest_1_2 dim count varTest_1_2 = "ABCD" count = 0 do until count = 5 doSomeSubRoutine(varTest_1_2 & "_" & count) count = count +1 loop
_____________________________
Mike For useful Scripting links see the Read Me First stickey! Always remember Search is your friend.
|
|
| |
|
|
|
 |
RE: use a variable in a variable - 3/11/2008 11:55:10 PM
|
|
 |
|
| |
robszar
Posts: 182
Score: 0
Joined: 2/27/2005
From:
Status: offline
|
I want to change the variable name, not the value, sorry, should have explained that better
|
|
| |
|
|
|
 |
RE: use a variable in a variable - 3/12/2008 1:11:52 PM
|
|
 |
|
| |
DiGiTAL.SkReAM
Posts: 1183
Score: 7
Joined: 9/6/2005
From: Florida, USA
Status: offline
|
Try working with Execute() and ExecuteGlobal().
_____________________________
"Would you like to touch my monkey?" - Dieter (Mike Meyers) "It is better to die like a tiger, than to live like a pussy." -Master Wong, from Balls of Fury
|
|
| |
|
|
|
|
|