SPACES

From CometWiki

Jump to: navigation, search

SPACES

Syntax:
SPACES number-of-spaces-between-columns
Placement:
See discussion.
Discussion:
The SPACES command sets the number of spaces between columns.
If you do not specify a SPACES command, The Reporter defaults to 5 spaces between each column.
If you do not specify a SPACES command, and if the width of the print line exceeds the margins of the output device, The Reporter will reduce the number of spaces between columns in an attempt to fit all of the data on the report.

However, if your report contains a SPACES command, The Reporter will force the number of spaces you request between fields, even if it will cause columns to go "off the edge" of the output device.

The SPACES command my be used globally or locally, as follows:

Globally
If you place the SPACES command before the REPORT command, all of the print lines will be affected.

For example:

    SPACES 8       ! SPACES command in global section
    REPORT
    .
    PRINT ...      ! print line with 8 spaces between columns
    USING ...
    PRINT ...      ! print line with 8 spaces between columns
    

Locally
If you place the SPACES command after the REPORT command, it applies only to the following PRINT command.

For example:

    REPORT
    .
    PRINT ...
    USING ...
    SPACES 3        ! SPACES command in local section
    PRINT ...       ! print line with 3 spaces between columns
Personal tools