Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


RE: Accessing enumerated types from vbscript

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> RE: Accessing enumerated types from vbscript
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: <<   < prev  1 [2]
Login
Message << Older Topic   Newer Topic >>
 RE: Accessing enumerated types from vbscript - 12/5/2006 4:50:49 AM   
  ebgreen


Posts: 5069
Score: 31
Joined: 7/12/2005
Status: online
A real solution would be accessing the enum as an object within the dll where it lives. This solution is merely slapping a bandaid on the problem by hardcoding the enum values as constants. Let's say six months from now a new version of the dll is released and the enum values are changed. Using this solution you would need to first know that they changed, then change your code to match. If you could access the enum directly, you would never even know that the change had occured. Don't get me wrong, I can't think of a better solution than using constants, I just wish there was one that's all.

_____________________________

"... 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 ehvbs)
 
 
Post #: 21
 
 
Page:  <<   < prev  1 [2]
 
  

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 >> RE: Accessing enumerated types from vbscript Page: <<   < prev  1 [2]
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