What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [split] multi-dimensional arrays

[split] multi-dimensional arrays
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: [Question] Timer usage
quote:
Originally posted by L. Coyote
I once needed this type of array and had to do this:
code:
var arr = new Array();
arr[0] = new Array();
arr[0][0] = "blah";

That's also the way I do it. I have no idea how JScript would react if you try to add an array element to an array element which is undefined at that moment... Maybe I should try it. :P

Another way you could do it, would be:
code:
var arr = new Array(new Array("thing", "stuff"), new Array("crap", "blah"));

This post was edited on 01-09-2007 at 05:15 PM by Matti.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
01-09-2007 05:10 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread


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