fpt and WinFPT Reference Manual - Command-line Commands
| SimCon Home | Ref Manual Home |
NUMBER LINES
Syntax:
NUMBER LINES
LINE NUMBERING ON
LINE NUMBERING OFF
Function:
Turns line numbering on or off for the interactive display of code. Lines are numbered from the start of the current file, or from the start of the current sub-program with INCLUDE files expanded in-line, depending on the way in which the code is examined. The scope of the line numbering, i.e. whether numbering from the start of the current file or from the start of the current sub-program, is determined by the TYPE and SEARCH commands.
NUMBER LINES is equivalent to LINE NUMBERING ON.
Where to Use this Command
Operating system command line | Yes |
Configuration file, config.fsp | Yes |
Specification (fsp) files, *.fsp | Yes |
Interactively, to FPT> prompt | Yes |
Interactive command files | Yes |
Embedded in the Fortran code | No |
Default
Line numbering is turned on by default. (Note that defaults may be changed in the configuration file)
Examples
FPT> number lines FPT> t 2:5 2 REAL*4 A(3),C(3),DC(3) 3 ! Set up new integrals 4 DO I=1,3 5 A(I)=C(I)+DC(I)*DT 6 >> ENDDO FPT> lin numb off FPT> t 2:5 REAL*4 A(3),C(3),DC(3) ! Set up new integrals DO I=1,3 A(I)=C(I)+DC(I)*DT ENDDO FPT>
See Also
Copyright ©1995 to 2025 Software Validation Ltd. All rights reserved.