FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference Manual Home |


NUMBER LINES

Syntax:

NUMBER LINES

LINE NUMBERING ON

LINE NUMBERING OFF

Function:

Turns on line numbering 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 hanged in the configuration file)

Example:

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:

TYPE

SEARCH

SET SCOPE


Copyright ©1995 to 2014 Software Validation Ltd. All rights reserved.