INDENT

From CometWiki

Jump to: navigation, search

INDENT

Syntax:
INDENT number-of-spaces
Placement:
See discussion.
Discussion:
The INDENT command indents the printed lines or the report from the left edge of the page if the MARGIN command has not been specified, or from the left margin if it has been specified.

Follow the INDENT command with the number of spaces from the left-hand margin where you wish to have the report data begin printing.

The INDENT command may be used globally or locally, as follows:

Globally
If you use the INDENT command before the REPORT command, all of the subsequent secondary print lines (which result from USING statements) will be indented.

For example:

    INDENT 6        ! INDENT command used in global section
    REPORT
    .
    PRINT ...
    USING ...
    PRINT ...       ! this line will be indented 6 spaces
    USING ...
    PRINT ...       ! this line will also be indented 6 spaces
    

Locally
If you use the INDENT command after the REPORT command, the indentation applies only to the next secondary print line, ie the one following the next USING.

For example:

    REPORT
    .
    PRINT ...
    USING ...
    PRINT ...
    INDENT 6        ! INDENT command used in local section
    USING ...
    PRINT ...       ! this line will be indented 6 spaces
Personal tools