HI Frank,
You have to say varName = myVar2(passedInteger)
gary
�-----------------------------------------------------------------------------------------------------------------------------------
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
---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 2844
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This message has been scanned for viruses.
**********************************************************************
---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 2850