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:
L. Coyote
Senior Member
****

Avatar
Captain Obvious

Posts: 981
Reputation: 49
39 / Male / Flag
Joined: Aug 2004
Status: Away
RE: [Question] Timer usage
quote:
Originally posted by SpunkyLoveMuff
code:
var myArray = new Array();
myArray[0][0] = "A1"
myArray[0][1] = "A2"
myArray[1][0] = "B1"
myArray[1][1] = "B2"


IIRC, it should be like that
Maybe not.

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";




Btw, from what I gather, it's not the timer, but what you do with it, what matters.



quote:
Originally posted by SpunkyLoveMuff
I've used multi-dimensional arrays before, but never with that method so I'm not sure if that is correct (I could be wrong though)
Well, JScript needs the Array variables to be predefined. If you don't tell it that arr[0] is an array, it'll tell you arr[0][0] is not defined.

I remember coming from using them in PHP and getting all these errors in JavaScript... I sort of learnt it the hard way... :P

This post was edited on 01-09-2007 at 04:40 PM by L. Coyote.

Hack, hack, hack!
Finally became a Systems Analyst! :spam:

01-09-2007 04:13 PM
Profile PM 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