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

6- 7
If
n
is zero, the following occurs:
"LIN (
num_expr
)" specifies only a carriage return character
(zero line feed characters). The next output item is printed
at the beginning of line
cl
(line
cl
is overwritten).
If
n
is negative, the following occurs:
"LIN (
num_expr
)" specifies
-n
line feed characters and no
carriage return character. The next output item is printed on
line
cl+(-n)
, starting at character position
cc
+1.
PAGE The PAGE function returns a form feed character. When the file
is printed, the form feed character advances the line printer to
the next physical page. PAGE affects only ASCII files opened
with carriage control specified. If the output device is a
terminal, or an ASCII file with no carriage control specified,
PAGE has no effect.
SPA The SPA function returns
n
spaces or a carriage return character
if the current output line has fewer than
n
spaces left; that is,
if
cc+n
exceeds
m
.
If
n
is positive, the following occurs:
The next output item is printed on the current output line,
starting at character position
cc+n
, if possible.
If
cc+n
exceeds
m
, the following occurs:
The SPA call specifies a carriage return character. The next
output item is printed at the beginning of line
cl+1
.
If
n
is negative, the following occurs:
An error occurs.
TAB The TAB function resets
cc
(and prints a carriage return
character, if necessary).
If
n
is positive, the following occurs:
If TAB increases
cc
and
n
<=
m
then the next output item is
printed on line
cl
, starting at character position
n
. If TAB
increases
cc
and
n
exceeds
m
, the next output item is printed
on line
cl
+1 starting at character position
n
MOD
m
. If TAB
decreases
cc
, the next output item is printed on line
cl
+1,
starting at character position
cc
.
If
n
is zero, the following occurs:
The TAB call has no effect.
If
n
is negative, the following occurs:
An error occurs.
Unless the output function call is the last item in the output list, HP
Business BASIC/XL ignores the delimiter (comma or semicolon) following
it. If that delimiter is immediately followed by one or more commas, HP
Business BASIC/XL skips one output field for each comma. For example,
the first comma in PRINT PAGE,,,A has no effect, but HP Business BASIC/XL
skips one output field for the second comma and another for the third.
Numeric Format Statements
The FIXED, FLOAT, and STANDARD statements are numeric format statements.
Each statement specifies a different default numeric format--fixed-point,
floating-point, or standard, respectively. The unformatted output
statements, DISP and PRINT output numeric values in the default numeric
format.
Before the program executes a numeric format statement, the default
numeric format is standard.