473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Go Back And Forth Between Functions

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
5 1478
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: John Benson | last post by:
Since I've seen some Forth expertise/interest in evidence here, so I'll permit myself some observations on Lua/Python/Forth. Lua's scripting command syntax is pretty simple, though different from...
38
by: BORT | last post by:
Please forgive me if this is TOO newbie-ish. I am toying with the idea of teaching my ten year old a little about programming. I started my search with something like "best FREE programming...
2
by: Matt | last post by:
How to pass data back and forth between ASP and JSP page? Let's say I have Java objects, how to pass the data back to ASP page?? Or ASP has data, how to pass the data to JSP page?? Please...
25
by: KK | last post by:
Hi, I am using history.go(-1) for implementing the back button functionality. Its working fine but with this exception. 1. The page which is having back button has some hyperlinks on it. ...
2
by: Lisa Pearlson | last post by:
Hi, My php application (on Apache/Linux) needs to do the following: The PHP script receives a request from a client (binary), asking for certain records of data. My PHP script loops through...
50
by: diffuser78 | last post by:
I have just started to learn python. Some said that its slow. Can somebody pin point the issue. Thans
4
by: Joseph Geretz | last post by:
We use a Soap Header to pass a token class (m_Token) back and forth with authenticated session information. Given the following implementation for our Logout method, I vastly prefer to simply code...
0
by: Marc Scheuner | last post by:
Folks, we're trying to stream back a result set from a SQL query into Excel from our ASP.NET application. Basically, we're doing this here: Response.ContentType = "text/csv";...
5
Ajm113
by: Ajm113 | last post by:
I want to convert the CAtlString back to a char *, but for some reason when it does my app aether crashes or makes up strange characters in my char *. One try str2 being CAtlString char *...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.