Silverfrost Forums

Welcome to our forums

Dropdown for routines

4 May 2011 12:01 #8167

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

4 May 2011 4:26 #8170

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

4 May 2011 4:42 #8171

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.

Please login to reply.