What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » error with arrays

error with arrays
Author: Message:
davidp
New Member
*


Posts: 7
30 / Male / Flag
Joined: Dec 2008
O.P. error with arrays
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?
12-22-2008 07:29 PM
Profile E-Mail PM Find Quote Report
felipEx
Scripting Contest Winner
***


Posts: 378
Reputation: 24
35 / Male / Flag
Joined: Jun 2006
RE: error with arrays
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)

This post was edited on 12-22-2008 at 07:50 PM by felipEx.
12-22-2008 07:47 PM
Profile E-Mail PM Find Quote Report
davidp
New Member
*


Posts: 7
30 / Male / Flag
Joined: Dec 2008
O.P. RE: RE: error with arrays
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
12-22-2008 07:52 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


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