Re: VB6 and global variables

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

From: Rick Rothstein (rickNOSPAMnews_at_NOSPAMcomcast.net)
Date: 04/13/04


Date: Tue, 13 Apr 2004 15:33:24 -0400

By the way, changing the name of the form-level global at this time would
also be a recommendation of mine for the same reasons I just posted. What
are we talking about to make that change too... another five minutes?

Rick - MVP

"Rick Rothstein" <rickNOSPAMnews@NOSPAMcomcast.net> wrote in message
news:uVoLt1YIEHA.2312@TK2MSFTNGP10.phx.gbl...
> How many places could the variable possibly be referenced within the
routine
> that you can't go through the code and rename it right now??? Really, how
> can you insist on sticking with something so horribly bad that, even if
you
> get it to work now, will surely bite you in the ass sooner or later when
> future changes have to be made on this code by you or, heaven forbid,
> someone new to the project who is totally unaware of what is going on?
What
> are we talking about to make the change... five minutes?
>
> Rick - MVP
>
>
> "Pete" <anonymous@discussions.microsoft.com> wrote in message
> news:F75F3806-02F5-474D-BB10-E53FCBF32ED7@microsoft.com...
> > Yes I do agree it does stink, but I was hoping for an understanding as
to:
> if you could access a form level global in a routine that also uses the
name
> of the variable as a param. - any clue?
> >
> > ** the entire app will be redone, this is just a big brain teaser - if
> you will. Know I just want to know what can be done in a routine like
that.
> >
> > Thanks
>
>



Relevant Pages

  • Re: Round to Power of Two
    ... > It's all very interesting Rick. ... but I was a math major in college, so extending this as much ... they now have a routine to produce it. ... Rick - MVP ...
    (microsoft.public.vb.general.discussion)
  • Re: Option Compare Statement
    ... Select Case doesn't really "force" you to use Option Compare any more than the Like operator does... ... and for the same reasons I posted earlier. ... Rick (MVP - VB) ...
    (microsoft.public.vb.general.discussion)
  • Re: Is overriding a function of a library in accordance with C++ standard?
    ... is one of the reasons that namespaces are used in most modern languages. ... Watch Out for Interpositioning ... routines now reference your routine instead. ... In keeping with C's philosophy that the programmer is always right, ...
    (microsoft.public.vc.mfc)
  • Re: set up reusable html code
    ... MVP FrontPage ... "HTML is markup language, not programming language. ... Couldn't one say that this usage qualifies as a routine? ...
    (microsoft.public.frontpage.programming)
  • Re: Installed from CD, apps in "trial" mode
    ... Barry Wainwright wrote: ... Disk Utility) before running the remove office routine. ... Microsoft MVP ... Microsoft MVP, ...
    (microsoft.public.mac.office)