I am trying to make an array, then make a backup of it before modification by copying it. When i do this everytime i modify the original the backup changes as well. It seems as though i am referencing it by ‘reference’ and not by value. I am doing a straight object copy like so:
myArrayBackup = myArrayOriginal;
To get around this i have create a function to loop through and copy cell by cell. Although this seems to work it is highly inefficient as my script does this action alot.
2 questions:
1) Why can’t i do a straight object copy like above?
2) Is there a better way to do this than looping through and copying each cell?
jason