Page 1 of 1
array creation and duplication
Posted: Fri Nov 26, 2010 6:03 am
by kwinkler
Is there a simple way to create an array of 50 floating point numbers, and then duplicate it?
Such as-
make myArray[50] --create an array of 50 elements
duplicate myArray myArray2, myArray3, myArray4 -- make three copies of myArray
Re: array creation and duplication
Posted: Fri Nov 26, 2010 10:39 am
by Klaus
Hi kwinkler,
Code: Select all
...
repeat with i = 1 to 50
put WHATEVER into myArray[i]
end repeat
put myArray into myArray2
put myArray into myArray3
put myArray into myArray4
...
Of course you need to replace WHATEVER with values of your choice!
Best
Klaus
Re: array creation and duplication
Posted: Fri Nov 26, 2010 3:04 pm
by kwinkler
Thanks Klaus,
I suspected it would be something like that. Since I have dozens of arrays, I was hoping to save some space.
Re: array creation and duplication
Posted: Fri Nov 26, 2010 3:29 pm
by Klaus
Hi kwinkler,
don't shoot the messenger!
Best from germany
Klaus