Connecting Tech Pros Worldwide Forums | Help | Site Map

Go Back And Forth Between Functions

altacct@yahoo.com
Guest
 
Posts: n/a
#1: Nov 13 '05
A weeke ago I read a (possibly old) thread where someone mentioned a
way to go back and forth between two different points in code, when
editing. I know that if I right-click on a function or sub and choose
"definition" from the pop-up menu I will go to that function. But the
trick this person mentioned (I think it was a function-key combination,
though I haven't be able to find it), allows you to go back to the
place from which you came. VERY handy. If you can remember it. Can you?

Jeremy

jimfortune@compumarc.com
Guest
 
Posts: n/a
#2: Nov 13 '05

re: Go Back And Forth Between Functions


altacct@yahoo.com wrote:[color=blue]
> A weeke ago I read a (possibly old) thread where someone mentioned a
> way to go back and forth between two different points in code, when
> editing. I know that if I right-click on a function or sub and choose
> "definition" from the pop-up menu I will go to that function. But[/color]
the[color=blue]
> trick this person mentioned (I think it was a function-key[/color]
combination,[color=blue]
> though I haven't be able to find it), allows you to go back to the
> place from which you came. VERY handy. If you can remember it. Can[/color]
you?[color=blue]
>
> Jeremy[/color]

I think you are referring to:

SHIFT + F2
CTRL + SHIFT + F2

Disclaimer: My memory isn't what I remember it to be. I have the
memory of an elephant. Unfortunately, that elephant died a few years
ago. Actually, I didn't take any notes in college for my first 4 1/2
years (double major: Applied Mathematics & Mechanical Engineering) but
I write things down now.

James A. Fortune

Trevor Best
Guest
 
Posts: n/a
#3: Nov 13 '05

re: Go Back And Forth Between Functions


altacct@yahoo.com wrote:[color=blue]
> A weeke ago I read a (possibly old) thread where someone mentioned a
> way to go back and forth between two different points in code, when
> editing. I know that if I right-click on a function or sub and choose
> "definition" from the pop-up menu I will go to that function. But the
> trick this person mentioned (I think it was a function-key combination,
> though I haven't be able to find it), allows you to go back to the
> place from which you came. VERY handy. If you can remember it. Can you?[/color]

Add the Edit Toolbar and use the bookmark function?

--
This sig left intentionally blank
altacct@yahoo.com
Guest
 
Posts: n/a
#4: Nov 13 '05

re: Go Back And Forth Between Functions


James, that's exactly what I was looking for. Thanks much.

And Trevor, yeah, I have the edit toolbar up there already (for
commenting and uncommenting blocks of code). I'm not sure why I've
never used bookmarks. It looks like there's a bunch of powerful stuff
up there. Though I was just playing with this stuff and "Show Quick
Info" crashed Access for me. Ouch. That was my vss production version.
Now it's asking me if I would like to remove it from source control. Is
this a known buggy thing, or did I just do someone wrong and the world
is handing it back to me?

Jeremy

Trevor Best
Guest
 
Posts: n/a
#5: Nov 13 '05

re: Go Back And Forth Between Functions


altacct@yahoo.com wrote:[color=blue]
> James, that's exactly what I was looking for. Thanks much.
>
> And Trevor, yeah, I have the edit toolbar up there already (for
> commenting and uncommenting blocks of code). I'm not sure why I've
> never used bookmarks. It looks like there's a bunch of powerful stuff
> up there. Though I was just playing with this stuff and "Show Quick
> Info" crashed Access for me. Ouch. That was my vss production version.
> Now it's asking me if I would like to remove it from source control. Is
> this a known buggy thing, or did I just do someone wrong and the world
> is handing it back to me?[/color]

I've not the quick info function but someone pointed out the bookmark
thing to me and I have to admit I've never used that either, if I wanted
to go to a function and return to the same place later I used to put a
deliberate compile error and use the compile button :-)

As for commenting blocks of code, I only just found that out while
looking at it yesterday. I think I'll be using that from now on as again
I had an unorthodox method for that:

#if false then
Code I don't want ATM
#end if

So in trying to help you, you've inadvertently helped me :-) Thanks.

--
This sig left intentionally blank
altacct@yahoo.com
Guest
 
Posts: n/a
#6: Nov 13 '05

re: Go Back And Forth Between Functions


Trevor,

That's great. I used to use the conditional compile thing, too. Learned
it here at CDMA. I have half a notion it was you who showed it to me,
about six years ago, though I just did a search for it and didn't find
it.

But, yeah, bookmarks, block commenting, shift f2...all very good tools.

Jeremy

Closed Thread