By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,969 Members | 1,735 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,969 IT Pros & Developers. It's quick & easy.

Go Back And Forth Between Functions

P: n/a
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

Nov 13 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
al*****@yahoo.com wrote:
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


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

Nov 13 '05 #2

P: n/a
al*****@yahoo.com wrote:
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?


Add the Edit Toolbar and use the bookmark function?

--
This sig left intentionally blank
Nov 13 '05 #3

P: n/a
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

Nov 13 '05 #4

P: n/a
al*****@yahoo.com wrote:
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?


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
Nov 13 '05 #5

P: n/a
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

Nov 13 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.