HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
6-: 6
|| | |
---------------------------------------------------------------------------------------------
--
|| | |
| Comma | In consecutive output fields. | On consecutive output lines. |
|| | |
---------------------------------------------------------------------------------------------
|| | |
| Nothing (it is | In consecutive output fields. | On consecutive output lines. |
| the last item in | | |
| the list) | | |
|| | |
---------------------------------------------------------------------------------------------
The DISP or PRINT statement prints two blank lines after printing the
entire array.
An array can also be printed with the MAT PRINT statement, described in
chapter 4.
Output Functions in Display List. The display list of a DISP or PRINT
statement can contain any of the following output function calls:
CTL (
num_expr
)
END
LIN (
num_expr
)
PAGE
SPA (
num_expr
)
TAB (
num_expr
)
Each output function call directs the DISP or PRINT statement to print
one or more control characters on the output file or device. If a
control character is sent to an output file, it affects the operation of
the line printer that prints the output file. If a control character is
sent to an output device, it affects the device itself.
The following paragraphs explain the individual output functions, using
these terms:
n
Value of
num_expr
; for example,
n
is 10 in "TAB 2*5".
cl
Number of the current output line; for example,
cl
is 12 if the
next output item is printed on the twelfth line of the output
file.
cc
Number of the current output character position; for example,
cc
is 20 if the first character of the next output item will be
printed in the twentieth character position of the output line.
m
The right page margin, output line length. It is set with the
MARGIN parameter in the output device specification. See "Device
Specification Syntax" for more information.
CTL The CTL function returns the carriage control character that is
represented by
n
. On the operating system in which HP Business
BASIC/XL is running,
n
must be the code for a carriage control
character. HP Business BASIC/XL does not check this. The DISP
or PRINT statement prints the output items that precede the CTL
call prior to generating the carriage control character. For the
effects of specific carriage control characters, see the manual
for the operating system in which HP Business BASIC/XL is
running.
END The END function returns the end-of-file character. It can only
be used when the specified output device is a file.
LIN The LIN function returns ABS(
n
) line feed characters.
If
n
is positive, the following occurs:
"LIN (
num_expr
)" specifies
n
line feed characters and a
carriage return character. The next output item is printed at
the beginning of line
cl+n
.