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:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Loading a external image
Each and every variable in a script needs to be declared somewhere. This is done using the var statement.

eg:
code:
var MyVar = "Hello World";


If you declare a variable inside a function, it is a local variable. The variable will only exist as long as the function runs. When the function ends, the variable will not exist anymore.

eg:
code:
function DoSomething() {
    var MyLocalVar = "Hello World"
}

If you declare a variable in the main scope of the script, thus outside any functions, it is a global variable. The variable will exist as long as the script is running and thus can be used from anywhere in the script, including from inside funtcions...

eg:
code:
var MyGlobalVar = "Hello World"

function DoSomething() {
    //blahblah
}



Short answer: declare WndProfileInformation as a global variable.

This post was edited on 03-02-2007 at 07:03 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
03-02-2007 07:01 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