I have the following code:
code:
function OnEvent_Initialize(MessengerStart){
var str = 'a;b;c;d;e;f;'
var data3 = new Array();
var data = str.split(';');
var data2 = data;
for(var i = 0;i<=5;i++){
data3[i] = data[i];
}
data[0] = 'z';
data[1] = 'x';
data[2] = 'y';
data[3] = 'v';
data[4] = 'w';
data[5] = 'u';
Debug.Trace(data);
Debug.Trace(data2);
Debug.Trace(data3);
}
gives the following output:
code:
Script is starting
Script is now loaded and ready
z,x,y,v,w,u,
z,x,y,v,w,u,
a,b,c,d,e,f
Shouldn't the second line of letters be the same as the second? obviously, its not, and I'm trying to figure out why.