Re: Global Variables

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



You should avoid using global variables like you would avoid a virulent
plague.

Global variables will not be available to other applications either.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.





"Siew Yee" <SiewYee@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4F0E69C9-B78D-439D-9C67-96E645182461@xxxxxxxxxxxxxxxx
> Hi,
>
> I would like to find out if I create global variables in my windows forms
> application and this application sits on a system where the system have
> other
> applications running, will the global variables exposed to the other
> applications sitting on the same system?
>
> Thanks.
>
> Regards,
> Siew Yee


.



Relevant Pages

  • Re: Application logic and Business logic
    ... >>But memory without structure is gibberish, ... the idea of sharing data between applications is ... your account's balance in their reports. ... they are volatile global variables! ...
    (comp.object)
  • Re: global variables in UML class diagrams (novice question)
    ... about UML class diagrams. ... global variables. ... Knowledge attributes are defined with objects that logically know something in the problem space. ... BTW, that's why the Singleton pattern is highly overused in OO applications; often it is just a kludge to introduce global data, which is a no-no. ...
    (comp.object)
  • Re: Application logic and Business logic
    ... Data without application is memory. ... the idea of sharing data between applications is ... they are volatile global variables! ... > swapped brains, neither could both applications run on the same brain. ...
    (comp.object)
  • Re: Understanding Modules ?
    ... containers for functions and Global variables - in what circumstances do ... Can you put multiple functions in one ... Because your applications might have many different features and functions, ... I placed my re-link code in a ...
    (microsoft.public.access.gettingstarted)
  • Re: How to set up a global variable in a sub-routine?
    ... the 'global variables' are more like constants ... ... single script, I need a way to tell it only once where the file is and ... So, if you construct a loop with a loop variable, you ... >programmers avoid global variables completely. ...
    (perl.beginners)