FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference Manual Home |


INDENT SUB-PROGRAM CODE

FPT version:

This command was first implemented in FPT version 3.3-h.

Syntax:

INDENT SUB [-] PROGRAM CODE [BY] [:] <integer> COLUMNS

Function:

This command applies to code written in free format only. It specifies an indentation applied to all statements between the sub-program declaration statement and the corresponding END statement. The indentation is applied in addition to that specified by INDENT EACH LEVEL OF NESTING and INDENT CONTINUATION LINES. It does not affect the position of statement labels. This is controlled by the INDENT LABELS command.

The value is displayed by the SHOW FORMAT command and saved to an FSP file by the SAVE FORMAT command.

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

Yes


Default:

INDENT SUB-PROGRAM CODE BY 8 COLUMNS

(Note that defaults may be changed in the configuration file)

See also:

INDENT COMMENTS

INDENT CONTINUATION LINES

INDENT EACH LEVEL OF NESTING

INDENT LABELS

MAXIMUM INDENTATION NESTING LEVEL

SAVE FORMAT

SHOW FORMAT


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