MARGIN [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation
HP Business BASIC/XL Reference Manual
MARGIN
The MARGIN statement sets the margin for the terminal screen or for an
ASCII file. Also, see the MARGIN option described in the "Device
Specification Syntax" section of chapter 6.
Syntax
MARGIN [#fnum;] num_expr
Parameters
fnum A file number that HP Business BASIC/XL uses to
reference the file for which the margin is to be set.
This is a numeric expression that evaluates to a
positive short integer greater than zero. If it is not
an ASCII file, the MARGIN statement has no effect. The
default is the terminal screen.
num_expr Maximum length of an output line on the terminal screen
or in the ASCII file, provided that num_expr does not
exceed the maximum length of a screen line, usually 80
characters, or the record length of the file. If
num_expr does exceed the maximum length of a screen
line, the margin is the maximum length instead of
num_expr. If num_expr exceeds the file's record length,
the margin is the record length instead of num_expr.
An output line that is longer than the physical margin
allows overflows onto the next physical line.
Examples
The following examples show the use of the MARGIN statement. Lines 10
and 40 set the margin for the default fnum, the terminal screen.
10 MARGIN 40
20 MARGIN #2; Num_char_to_right_hand_margin
30 MARGIN #1; X-5
40 MARGIN Terminal_line_length
MPE/iX 5.0 Documentation