What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Curiousity with arrays (meaning, why is this happening?

Curiousity with arrays (meaning, why is this happening?
Author: Message:
MeEtc
Patchou's look-alike
*****

Avatar
In the Shadow Gallery once again

Posts: 2200
Reputation: 60
38 / Male / Flag
Joined: Nov 2004
Status: Away
O.P. Curiousity with arrays (meaning, why is this happening?
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.
[Image: signature/]     [Image: sharing.png]
I cannot hear you. There is a banana in my ear.
01-10-2008 05:13 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Curiousity with arrays (meaning, why is this happening? - by MeEtc on 01-10-2008 at 05:13 PM
RE: Curiousity with arrays (meaning, why is this happening? - by Matti on 01-10-2008 at 05:39 PM
RE: Curiousity with arrays (meaning, why is this happening? - by Volv on 01-10-2008 at 05:39 PM
RE: Curiousity with arrays (meaning, why is this happening? - by mynetx on 01-10-2008 at 07:15 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On