Shoutbox

error with arrays - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: error with arrays (/showthread.php?tid=87910)

error with arrays by davidp on 12-22-2008 at 07:29 PM

Hi, I want to work with arrays and I thougt, lets try it like in JavaScript, but theres always the same error: "Object expected (Code: -2146823281)
Scriptstart failed!"

but I saw this in the forum too:

code:
var array = array("first value", "second value");


but this dosen't work in my script.

can you help me?
RE: error with arrays by felipEx on 12-22-2008 at 07:47 PM

JScript is case sensitive so you should declare this as

JScript code:
var myArray = Array("first value", "second value");

;)


Edit: See also JScript Language Reference (Windows Scripting - JScript)
RE: RE: error with arrays by davidp on 12-22-2008 at 07:52 PM

quote:
Originally posted by felipEx
JScript is case sensitive so you should declare this as
JScript code:
var myArray = Array("first value", "second value");

THANKS that was the problem ;)

greetings davidp