What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Variable isn't defined

Variable isn't defined
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: Variable isn't defined
What error does it give you? Still a "variable not defined" or another error?

You may want to try this:
code:
Width = 1 * XML.getElementsByTagName("title")[2].text;
Height = 1 * XML.getElementsByTagName("title")[3].text;
Width and Height will be set to a string value, because the "text" property is a string. Thus, when you pass a string through Interop.Call, it'll create a DataBloc with the Unicode string in and send the pointer instead, which is not what we want. Therefore, we force the string to be converted to a number by multiplying it with 1, and so Width and Height will be numbers and their value should be passed correctly through Interop.Call.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

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

Messages In This Thread
Variable isn't defined - by SnuZZer on 11-02-2007 at 07:40 PM
RE: Variable isn't defined - by Matti on 11-02-2007 at 08:17 PM
RE: Variable isn't defined - by SnuZZer on 11-02-2007 at 08:43 PM
RE: Variable isn't defined - by Matti on 11-03-2007 at 09:55 AM
RE: Variable isn't defined - by SnuZZer on 11-03-2007 at 03:43 PM
RE: Variable isn't defined - by roflmao456 on 11-03-2007 at 06:42 PM
RE: Variable isn't defined - by Felu on 11-04-2007 at 03:57 AM
RE: Variable isn't defined - by Matti on 11-04-2007 at 10:28 AM


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