View Full Version : ASP Class: Static Member

07-12-2004, 08:48 PM
Does anyone know how to create a static member in a vbscript class; Or if vbscript supports this functionality?

07-14-2004, 08:41 PM
what i did was to create read only properties for my class and hardcode the values just as i would when setting the value of a Const variable. However this is not a static member as i have to instantiate the class to gain access to the property. I could have defined Const variables in the global.asa file of my application but this would've violated the modularity i was trying to achieve. It seems that the concept of a Static Member only applies in a truly object oriented language like java, c++ or c#. got to love asp.net! Thanks for reading my original question.