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

4- 108
DISP statement uses the standard list device. If the most recently
executed SEND OUTPUT TO statement specifies the standard list device, or
if the program has not executed a SEND OUTPUT TO statement, then the
PRINT statement is equivalent to the DISP statement. The PRINT statement
can also transfer the value of one or more variables to a data file.
Syntax
[,]
PRINT [
output_item_list
] [;] PRINT
#fnum
[,
rnum
[,
wnum
]];
output_item_list
Parameters
fnum
The file number that HP Business BASIC/XL uses to
identify the file. It is a numeric expression that
evaluates to a positive short integer.
rnum
Record number, a numeric expression. If a file I/O
statement specifies
rnum
, it is direct; otherwise, it is
sequential.
wnum
Word number, a numeric expression. If a file I/O
statement specifies
wnum
, it is direct word. This is
only allowed with BASIC DATA files.
[{[,]...} ]
output_item_
[,]...
output_item
[{; }
output_item
]...
list
output_item
One of the following:
num_expr
str_expr
, A separator that prints each new item
in a separate output field.
; A separator that prints each new item
right next to the previous item.
array_name
(*) Array reference. See "Array References
in Display List" in chapter 6 for more
information.
{PAGE }
{{CTL} }
output_function
{{LIN} }
{{SPA} (
num_expr
)}
{{TAB} }
See "Output Functions in Display List"
in chapter 6 for more information.
FOR_clause
(FOR
num_var
=
num_expr1
TO
num_expr2
[STEP
num_expr3
],
d_list
)
See the section that follows, "FOR
Clause in Display List", for more
information.