tengjunbin Newbie
Joined: 26 Oct 2004 Posts: 6
|
Posted: Tue Oct 26, 2004 6:13 am
Help with arrays... |
I have an array say:
#var testarray {%array()}
which I then proceed to fill up, say:
#noop %arrset(testarray,1,1)
#noop %arrset(testarray,2,2)
#noop %arrset(testarray,3,3)
#noop %arrset(testarray,4,4)
Now I need to duplicate another copy of the array. How can I go about this?
I've tried:
#var copyarray {@testarray}
but all I get is an empty array. Any help is appreciated.
ps: I know I can loop through all elements and copy one by one, but that is very slow. I need something that copies everything in 1 shot. |
|