fpt and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Ref Manual Home |

INDENT SUB-PROGRAM CODE

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 2022 Software Validation Ltd. All rights reserved.