
MrMarx
Members-
Content Count
1 -
Joined
-
Last visited
About MrMarx
-
Rank
Newbie
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
I use the following: function script funCopyInstanceMaps { // Given instance name, and a reference to an Array, // copy the array of maps to this new array. [email protected]_name$ = getarg(0); [email protected]_maps$ = "[email protected]_this_run_" + [email protected]_name$ + "$"; [email protected]_count = getarraysize(getd([email protected]_maps$)); copyarray(getarg(1), getd([email protected]_maps$), [email protected]_count); return; } Should be similar to your case. Usage of copyarray is documented in the script_commands.txt and there are examples on samples folder. Should work in your case with some tweaking for your situation, I suppose? Can have guard clauses on the amount of data to copy if desired. I have getarg(1) as argument on copyarray because this is the variable I want to store the copy of the array by using getd on variable I'm obtaining dynamically on the string written in [email protected]_maps$.