Home All Groups Group Topic Archive Search About

Sharing Variables across modules in the same project?

Author
31 Mar 2005 11:16 PM
Terry Olsen
What is the best practice for sharing variables across modules in the
same project?

I'm doing a console app with different modules for different functions
(file i/o, sql commands, string manipulation, etc).  But I have
variables in the main module that other modules need to access such as
AppPath, etc.

What is the "best practice" concerning a situation like this?

*** Sent via Developersdex http://www.developersdex.com ***

Author
1 Apr 2005 2:10 AM
Robbe Morris [C# MVP]
Public Shared class properties

Show quoteHide quote
"Terry Olsen" <tolse***@hotmail.com> wrote in message
news:uXQPdekNFHA.508@TK2MSFTNGP12.phx.gbl...
> What is the best practice for sharing variables across modules in the
> same project?
>
> I'm doing a console app with different modules for different functions
> (file i/o, sql commands, string manipulation, etc).  But I have
> variables in the main module that other modules need to access such as
> AppPath, etc.
>
> What is the "best practice" concerning a situation like this?
>
> *** Sent via Developersdex http://www.developersdex.com ***