Since you're calling me out ;-)

I actually put them all at the top of the routine, just out of habit.  I
guess it's a security blanket sort of thing, having all the variables in one
nice little group, where I always know where to find them.  Someday I'll
give up the blankie...

I do like your idea of a contextual option for "go to definition".  That
would ease the mental transition if nothing else.

Tim


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of
> [EMAIL PROTECTED]
> Sent: Friday, April 06, 2007 11:43 AM
> To: [email protected]
> Subject: RE: Place of Dim declares ?
>
>
> On Apr 06, 2007, at 18:08 UTC, Tim Hare wrote:
>
> > My personal opinion is declare the variable at the beginning of the
> > *scope* of where it is needed.  If you declare it immediately before
> > its first use, then you have to really hunt to find the definitions
> > of variables that are randomly sprinkled through the code.
>
> Under what circumstances do you find a need to do that?
>
> I'm trying to think of a case, but it just doesn't seem to come up for
> me.  If I want to know what type a variable is, I just mouse or cursor
> over it and the status line tells me.  It also tells me where it's
> defined, for that matter -- but the way I work, that's almost always
> within the last few lines, so I don't often find myself wondering.
>
> However, this does bring up an interesting feature idea.  We already
> have "Go To Window1.Foo" in the contextual menu for a variable Foo
> defined as a property of Window1.  But for a local variable, the
> contextual menu has no such entry.  It could have a "Go To Definition"
> command that would just jump to the line where that variable is defined
> (clearly the IDE knows where that is since it tells you in the status
> bar).  A small thing, but it might be handy now and then.
>
> Best,
> - Joe
>
> --
> Joe Strout -- [EMAIL PROTECTED]
> Verified Express, LLC     "Making the Internet a Better Place"
> http://www.verex.com/
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.26/748 - Release Date:
> 4/5/2007 3:33 PM
>
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.26/748 - Release Date: 4/5/2007
3:33 PM

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to