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

4-: 149
rounded to nearest
second
Greater than 255 Set to 255 seconds
If the TIMEOUT option is not selected, then the input
time limit is unlimited.
If input time is limited through the use of the
TIMEOUT option, HP Business BASIC/XL transfers
control to the next program statement when the time
limit is exceeded without assigning a new value to
the specified
var
.
elapsed_num_var
A numeric variable to which the time, in seconds,
taken to enter the input is returned. If the ELAPSED
option is not selected, the elapsed time is not
measured. If TIMEOUT is also specified, and a
timeout occurs,
elapsed_num_var
is set to -256.
chars_num_expr
A numeric expression that evaluates to the maximum
number of characters that can be input. Typing this
number of characters will cause the generation of an
automatic carriage return and assignment of the value
to the specified
str_var
. The program will then
begin execution of the next statement in the program.
NOLF Suppresses the automatic line feed normally generated
after pressing RETURN, subsequent to reaching the
TIMEOUT limit specified, or after typing in that
number of characters specified in the CHARS option.
Examples
The following examples show the TINPUT statement.
10 TINPUT String_var1$, TIMEOUT Time_limit
20 TINPUT String_var2$, ELAPSED Elapsed_time
30 TINPUT String_var3$, CHARS Num_chars
40 TINPUT String_var4$, NOLF
50 TINPUT String_var5$, WITH TIMEOUT=10, ELAPSED=Elapsed_time
60 TINPUT String_var6$, ELAPSED Elapsed time, CHARS 1, NOLF
70 TINPUT Num_var WITH ELAPSED=Elapsed_time
80 TINPUT Num_var, TIMEOUT Time_limit
90 TINPUT CHARS 2
100 TINPUT TIMEOUT 5
110 TINPUT ELAPSED Elapsed_time
120 TINPUT CHARS=1,NOLF
TOTALS
The TOTALS statement is a Report Writer statement that provides an easy
means for automatic accumulation of numeric data. It provides totaling
at the individual summary levels in a report.
A TOTALS statement can appear in a HEADER or TRAILER section only. There
cannot be more than one TOTALS statement for each summary level. The
TOTALS statement is not used if it is contained in a section with a level
of zero, as the section is unused.
Syntax
[{,} ]
TOTALS [ON]
num_expr
[{;}
num_expr
]...
Parameters
num_expr
Any numeric expression can be totaled. There can be as