I have a set of array variables, let's call them myVar1, myVar2 etc.
I want to extract a value from one of my arrays, based on an integer that
gets passed, along with the name of the array to get it from.
ie:
I want to get myVar2(10) and note it.
so...
passedInteger = 10
varName = myVar2
myCommand = "note " + varname + "(" + passedInteger + ")"
run command myCommand
which should resolve to myVar2(10) which in turn resolves to give the value
contained in the array. However, I get an error telling my that the
variable isn't defined - it is.
Any comments? Hope I've made myself clear...
Thanks a lot, as always
Frank
---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 2839