forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Dropdown for routines

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General
View previous topic :: View next topic  
Author Message
christyleomin



Joined: 08 Apr 2011
Posts: 155

PostPosted: Wed May 04, 2011 1:01 pm    Post subject: Dropdown for routines Reply with quote

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
View user's profile Send private message
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2388
Location: Yateley, Hants, UK

PostPosted: Wed May 04, 2011 5:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7926
Location: Salford, UK

PostPosted: Wed May 04, 2011 5:42 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group