HP Pascal/iX Reference Manual (31502-90022)

10- 12
page
Usage
page
(f)
page
Parameter
f
A textfile variable that must be open. If
f
is omitted, the system
uses the standard file
output
.
Description
The procedure page
(f)
writes a special character to the text file
f
,
which causes the printer to skip to the top of the form when
f
is
printed. The current position in
f
advances, and the buffer variable
f^
is undefined.
Example
page(text_file)
page
position
Usage
position
(f)
Parameter
f
A file variable that must not be a textfile.
Description
The function position
(f)
returns the integer index of the current
component of
f
, starting from 1. Input or output operations references
this component. The parameter
f
must not be a textfile.
Example
i:=position(file_var)
prompt
Usage
prompt
(f)
prompt
(f, e)
prompt
(f, e1, ..., en)
prompt
prompt
(e)
prompt
(e1, ..., en)
Parameters
f
A textfile variable. The system uses the standard file
output
if
f
is omitted.
e
The expression of any simple, string, or PAC type or string literal.
Description
The procedure prompt
(f)
causes the system to write any buffers associated
with textfile f to the device. prompt does not write a line marker on
f
.
The current position is not advanced, and the buffer variable
f^
becomes
undefined.