Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


I'm interest in this topic...but, could you please check if this is correct?

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,60996
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> I'm interest in this topic...but, could you please check if this is correct?
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 I'm interest in this topic...but, could you please chec... - 6/3/2008 9:08:00 AM   
  lair360

 

Posts: 22
Score: 0
Joined: 5/16/2008
Status: offline
Const HKEY_CLASSES_ROOT = &H80000000
Const HKEY_CURRENT_USER = &H80000001
Const HKEY_LOCAL_MACHINE = &H80000002
Const HKEY_USERS = &H80000003
Const HKEY_CURRENT_CONFIG = &H80000004
 
 
Post #: 1
 
 RE: I'm interest in this topic...but, could you please ... - 6/3/2008 9:21:11 AM   
  lair360

 

Posts: 22
Score: 0
Joined: 5/16/2008
Status: offline
Oh S****!! I've made it wrong!
Is this the correct Const code???
-------------------------------------------

      

(in reply to lair360)
 
 
Post #: 2
 
 RE: I'm interest in this topic...but, could you please ... - 6/3/2008 9:26:01 AM   
  ebgreen


Posts: 5041
Score: 31
Joined: 7/12/2005
Status: offline
Ok, so lets be clear a constant is simply a variable that does not change (I know oxymoron but that is really what it is). So this:

Const HKEY_CLASSES_ROOT = "FOO"

Is technically correct. It wouldn't let you later use that constant to open the Classes Root hive, but as far as the interpreter is concerned it is just fine. As for making the constants private, we have no way of knowing what the environment that you are developing in is like so we have no way to know if you need to make them private or not.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to lair360)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> I'm interest in this topic...but, could you please check if this is correct? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts