Whew… thank you all for your replies.
What I actually want to do is this:
I am loading a bunch of variables from a text file. The text variables are in the form
variable1=value1,value2,value3&variable2=value1,value2,value3
In order to use the values for each variable I have to split them and put them in arrays.
myarray=variable1.split(",");
since I am loading several variables, I need to create a number of arrays that is equal to the number variables I have. At the same time, I was populating such arrays with the split value of the variable.
Hence…
for(i=1;i<10;i++){//where 10 is the number of variables loaded
myarray*=[this.myvariable*]; /* This actually is "myarray"+i , but I know that doesn't work. The part to the right of the assignment works fine and it is meant to circumvent to problem of "myvariable"+i
*/
}
this was all meant to produce something like this…
myarray1=myvariable1.split(","); //each one is a different array
myarray2=myvariable2.split(",");
myarray3=myvariable3.split(",");
I somehow knew Supra would come out of hiding on this one. Thank's to all for your responses!
Pom, I've been so busy I just had to post this one, even though I am like you (and others on this board), I like to figure these out on my own, it's just part of the fun. However, I don't have the time this time around. So, your help (everyone's help) is greatly appreciated.