HP Pascal/iX Reference Manual (31502-90022)
Table Of Contents
- Top of Document
- Preface
- Chapter 1 Introduction
- Chapter 2 Language Elements
- Chapter 3 Data Types
- Chapter 4 Expressions
- Chapter 5 The Declaration Section
- Chapter 6 Statements
- Chapter 7 Program Structure
- Chapter 8 Procedures and Functions
- Chapter 9 Standard Routines
- Chapter 10 Input and Output
- Chapter 11 System Programming Extensions
- Chapter 12 Compiler Options
10- 13
prompt is normally used when directing output to a terminal. prompt
causes the cursor to remain on the same line after output to the screen
is complete. The user may then respond with input on the same line.
The expression parameter,
e
, behaves exactly like the equivalent
parameters in the procedure write.
Example
prompt(file_var)
prompt(file_var,exp)
prompt(file_var,exp1,...,expn)
prompt(exp)
prompt(exp1,...,expn)
prompt
put
Usage
put
(f)
put
Parameter
f
A file variable opened in the output or direct access state. The
system uses the standard file output if
f
is omitted.
Description
The procedure put
(f)
assigns the value of the buffer variable
f^
to the
current component and advances the current position. Following the call,
f
^ is undefined.
It is an error if
f
is open in the input state.
Example
put(file_var)
Illustration
Suppose examp_file is a file of integer with a single component opened in
the output state by append. Furthermore, 9 has been assigned to the
buffer variable examp_file^. To place this value in the second
component, put is called.