What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » reading boolean from registry

reading boolean from registry
Author: Message:
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: reading boolean from registry
If the Preferences object is called a "Preferences", don't name your variable that  (don't do what I crossed out, instead do what's underneath):
code:
function preferences()
{
  this.percentage = new Boolean(true);
  this.cols = 3;
}
var preferences = new preferences();
var mypreferences = new preferences();

(the bold is what I changed)

I believe it is because of the intialization where the boolean is set to true. Because they have the same name, it's initializing again each time, setting it to true.

This post was edited on 07-21-2006 at 09:22 PM by deAd.
07-21-2006 09:20 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
reading boolean from registry - by Ezra on 07-21-2006 at 08:48 PM
RE: reading boolean from registry - by deAd on 07-21-2006 at 09:20 PM
RE: reading boolean from registry - by TheGeek on 07-21-2006 at 09:22 PM
RE: reading boolean from registry - by Ezra on 07-21-2006 at 10:28 PM
RE: reading boolean from registry - by CookieRevised on 07-21-2006 at 10:31 PM
RE: reading boolean from registry - by Ezra on 07-22-2006 at 03:56 PM
RE: reading boolean from registry - by J-Thread on 07-22-2006 at 06:04 PM
RE: reading boolean from registry - by Ezra on 07-22-2006 at 06:08 PM
RE: reading boolean from registry - by J-Thread on 07-22-2006 at 07:19 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