HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
4- 148
Example :
500 THREAD IS Set1, Set2 LINK Var, Set3, Set4
* An error results if the specified path between the data sets does not
exist and (for detail sets) no LINK is specified. Link cannot be
used to connect a master to a detail.
* The THREAD statement is nonexecutable. Its validity will be checked
at run time by the SEARCH statement or the SORT statement.
TINPUT
The TINPUT statement obtains a string of characters from an input device.
The characters are echoed to the display as they are entered. If a
string or numeric variable is included in the TINPUT statement, then the
value of the string of characters entered is assigned to the variable.
TINPUT options control the maximum amount of time allowed for input, the
time required for input, the maximum number of characters that can be
input, and the line feed generated subsequent to the statement execution.
At least one option must be selected when using the TINPUT statement.
Syntax
TINPUT [
var
] [
separator
]
option_clause
[
separator option_clause
]...
{TIMEOUT [=]
timeout_num_expr
}
{ELAPSED [=]
elapsed_num_var
}
option_clause
-> {CHARS [=]
chars_num_expr
}
{NOLF }
{WITH}
separator
-> {, }
{; }
EACH individual
option_clause
can occur only once in a TINPUT statement.
Parameters
var
The numeric or string variable to which the input is
assigned. A TINPUT statement without a
var
discards
the input. Characters are assigned to the variable
when you type RETURN. For string variables, note that
no character, such as a comma or a double quote, is
considered to be a data item separator or terminator
within the input string. Leading and trailing blanks
are also included in the string of characters
assigned to a string variable.
For numeric variables, the input character string is
interpreted as a numeric literal and is assigned to
the numeric variable. In this case, a comma is a
valid item separator or terminator. If using the
European format, set by the Native Language Number,
then a semicolon replaces the comma as a separator or
terminator. Any leading, embedded and trailing
blanks are suppressed. If an invalid character is
entered, then an HP Business BASIC/XL error occurs.
timeout_num_ expr
Numeric expression for the maximum amount of time, in
seconds, allowed by the user to enter input. The
input time limit is determined as follows:
Value of
timeout_num_ expr
Input Time Limit
Zero or less Unlimited
In the range (0,255) That number of seconds