Administrator

Administrator

  • Tech Writer
  • 2.2k
  • 1.5m

Global variables/objects

Mar 19 2003 10:20 AM
Helo all, I would like to create some globally accessible variables and objects that would be available to all objects and classes within my project without having to pass as parameters or create some means of tracing back. I am particularly thinking of static things like a database connection string that will never change or even a SqlConnection object that I can open at the beginning and close at the end and all of the objects within the project can use. I have looked through my Microsoft book and my O'Reilly book and cannot find anything on application level variables. can someone please help me. Thank you in advance. Robert

Answers (2)