I'm sure I've actually done this before, so why I can't figure this out now is annoying. I'm hoping someone can spark my memory here.
Basically, I have 54 variable names stored in an array. I want to set the values of the variable values using the array as the name reference.
In other words, instead of:
x=1
I want to set x by referring to it's location in the array.
I tried:
myarray(0,0)=1
Unfortunately, this just changes the variable name that I have stored in the array to 1. Ha! Not quite what I want.
Any help would be greatly appreciated.
Basically, I have 54 variable names stored in an array. I want to set the values of the variable values using the array as the name reference.
In other words, instead of:
x=1
I want to set x by referring to it's location in the array.
I tried:
myarray(0,0)=1
Unfortunately, this just changes the variable name that I have stored in the array to 1. Ha! Not quite what I want.
Any help would be greatly appreciated.
Comment