LEFT MARGIN [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation
HP Business BASIC/XL Reference Manual
LEFT MARGIN
The LEFT MARGIN statement is a Report Writer statement that defines the
column in which a report line will start printing. This allows you to
adjust the left margin on the output device. The MARGIN statement
adjusts the right margin.
The LEFT MARGIN statement does not apply to terminal output. The output
is adjusted if the standard output is redirected to a non-terminal device
such as a printer. The COPY ALL OUTPUT statement, if applicable,
reflects the left margin of the standard output.
There cannot be more than one LEFT MARGIN statement in a report
description.
Syntax
LEFT [MARGIN] column
Parameters
column The column that the first character of a report line is
in. That is, column - 1 spaces appear on the left of
each line. The left margin column must have a value
between 1 and 132.
Examples
The following examples show the LEFT MARGIN statement.
100 LEFT MARGIN 10 !First column is 10, preceded by 9 blank spaces
100 LEFT MARGIN 35 !First column is 35, preceded by 34 blank spaces
The LEFT MARGIN statement is evaluated only by BEGIN REPORT and is busy
only during evaluation.
The default value is 1 if there is no left margin statement. The
distance between the left and right margins must be at least 20
characters, or an error occurs. This is checked at BEGIN REPORT and
whenever the right margin changes.
When report output is done, all output is preceded by column-1 spaces.
However, the left margin only applies if the output device is not a
terminal. For terminal devices, the left margin is always 1.
The left margin applies to both the standard output file and the COPY ALL
OUTPUT file, if output is being copied. If the left margin is too large
for the COPY ALL OUTPUT file or for the standard output file, there is an
error in BEGIN REPORT.
MPE/iX 5.0 Documentation