Re: VB 6.0 Desktop - Global Variables

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




"isicoder" <isicoder@xxxxxxxxxxxxxxxxx> escribió en el mensaje
news:eCAv38ALGHA.668@xxxxxxxxxxxxxxxxxxxxxxx
Why should we minimize the use of global variables? Is it worth the
effort to enable cross form communication? Is it quicker and smaller
code?

Thanks,


With global variables, code will is less readable and so harder to maintain.
So, the performance of global variables are slower than local variables.
Why? the extra-logic work that compiler has to do.

--
<Harvey Triana />


.



Relevant Pages

  • Re: VB 6.0 Desktop - Global Variables
    ... effort to enable cross form communication? ... Is it quicker and smaller ... Is it homework? ...
    (microsoft.public.vb.general.discussion)
  • VB 6.0 Desktop - Global Variables
    ... Is it worth the effort ... to enable cross form communication? ... Is it quicker and smaller code? ...
    (microsoft.public.vb.general.discussion)