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
That's because they're defined in the function "StartDownload", and thus they're private for the function. They aren't accessible outside that function.

To fix this, you have to define Width and Height globally. At the very beginning of your script, outside any function, add this:
code:
var Width;
var Height

//Here the rest of the script, in your case: function OnEvent_Initialize(MessengerStart) etc.
and remove the "var" before Width and Height in your function. This way, the variables are accessible by all parts of your script, and can also be changed by any function. :)

This post was edited on 11-02-2007 at 08:18 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!
11-02-2007 08:17 PM
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