View previous topic :: View next topic |
Author |
Message |
christyleomin
Joined: 08 Apr 2011 Posts: 155
|
Posted: Wed May 04, 2011 1:01 pm Post subject: Dropdown for routines |
|
|
Hi,
I'm new to Fortran.
I have a program wherein I have written 6-8 sub-routines. I'm not able to find a combo which lists all my sub routines.If I need to go to a particular sub routine I'm finding it very difficult to scroll and search.Is there anything I'm missing?
Christy |
|
Back to top |
|
|
LitusSaxonicum
Joined: 23 Aug 2005 Posts: 2388 Location: Yateley, Hants, UK
|
Posted: Wed May 04, 2011 5:26 pm Post subject: |
|
|
Christy,
I keep a file called WHEREIS. In it, I list all the subroutines in each file, with a line number. Even if the line number is not entirely correct, it helps me to find a routine - I also list these by the name of the file that they are in. If you are in difficulty now with 8 subroutines, imagine the problem of having 80 - or 800.
Occasionally, I update line numbers - mostly, I operate on the basis of finding where I want to be within 20-30 lines.
For most subroutine calls, which refer to a subroutine in another file, I add a comment saying which file it is in!
Regards
Eddie |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7927 Location: Salford, UK
|
Posted: Wed May 04, 2011 5:42 pm Post subject: |
|
|
If you are using Plato and the subroutines are in the file that you are viewing then press Ctrl+G to get the Goto dialog. This presents a combo box with a list of the subroutines. Clear "Line No." edit box and select the function/subroutine that you want to go to.
In Visual Studio there will be a combo box at the top right of the window showing the source code. |
|
Back to top |
|
|
|