- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How do you get Compaq Visual Fortran to print out line numbers with the source code? Also, is there a way to see the line numbers in the source code window? When we change the source code we are required to specify the changed line numbers in a revision history comment section. I need to have the line numbers in a print out in order to add this information. Thanks.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just ask for a source listing (Project..Settings..Fortran..Listing Files.) There isn't a way to add source line numbers to the editing window, but the current line number is displayed at the bottom of the pane and you can use CTRL-G to GOTO LINE.
Steve
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I tried it still no line numbers in the print out, more advice please.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Works for me. You need to check the Source Listing box - the listing file has the .lst type. Here's an excerpt of an example:
Steve
1 module mymod 2 interface operator (//) 3 module procedure myconcat 4 end interface operator (//) 5 contains 6 function myconcat (arg1, arg2) 7 character*(*), intent(in) :: arg1 8 integer, intent(in) :: arg2 9 character*(LEN(arg1)+ 1) myconcat 10 myconcat = arg1 // char(arg2+ichar('0')) 11 return 12 end function myconcat
Steve
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page