What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Loading a external image

Loading a external image
Author: Message:
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: RE: RE: Loading a external image
quote:
Originally posted by CookieRevised
quote:
Originally posted by Mattike
quote:
Originally posted by CookieRevised
Short answer: declare WndProfileInformation as a global variable.
And this should be done when you create the window, like in:
code:
WndProfileInformation = MsgPlus.CreateWnd("thing.xml", "WndProfileInformation");
The difference here is the missing "var" prefix, without it it'll get declared as a global variable.

Note: when the window is destroyed, you should delete the variable too!

Personally I would not recommend declaring variables like that. It is bad practice and prone to errors/bugs if you're not carefull.

Always use var and always declare your global variables outside functions first.


I think he was referring to removing the var from the statement inside the function so instead of creating a local variable, it would set the already existing global variable.
03-02-2007 09:23 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Loading a external image - by Yorick on 03-01-2007 at 05:00 PM
RE: Loading a external image - by Matti on 03-01-2007 at 05:24 PM
RE: Loading a external image - by matty on 03-01-2007 at 06:03 PM
RE: Loading a external image - by Yorick on 03-02-2007 at 06:53 PM
RE: Loading a external image - by CookieRevised on 03-02-2007 at 07:01 PM
RE: Loading a external image - by Yorick on 03-02-2007 at 07:04 PM
RE: Loading a external image - by Matti on 03-02-2007 at 07:23 PM
RE: RE: Loading a external image - by CookieRevised on 03-02-2007 at 09:13 PM
RE: Loading a external image - by Yorick on 03-02-2007 at 07:32 PM
RE: RE: RE: Loading a external image - by Eljay on 03-02-2007 at 09:23 PM


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