HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)

4-: 71
List" in chapter 6.
FOR_clause
(FOR
num_var
=
num_expr1
TO
num_expr2
[STEP
num_expr3
],
d_list
)
See "FOR Clause in Display List"
in the DISP and PRINT statements
in this chapter.
Examples
10 V$="Hi there."
20 DISP V$
30 LDISP V$
In the above example, if you type RUN and the screen already has
characters on the next two lines:
>RUN
12345678901234567890
12345678901234567890
then following program execution, the screen contains
>RUN
Hi there.01234567890
Hi there.
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