Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    ASP Class: Static Member

    Does anyone know how to create a static member in a vbscript class; Or if vbscript supports this functionality?
    Thanks!!!

  2. #2
    New to the CF scene
    Join Date
    Jun 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile one answer

    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.


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •