HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
4- 72
whenever the right margin changes.
When report output is done, all output is preceded by
column
-1 spaces.
However, the left margin only applies if the output device is not a
terminal. For terminal devices, the left margin is always 1.
The left margin applies to both the standard output file and the COPY ALL
OUTPUT file, if output is being copied. If the left margin is too large
for the COPY ALL OUTPUT file or for the standard output file, there is an
error in BEGIN REPORT.
LENTER
The LENTER statement assigns all or part of a line of display memory to a
string variable. User input from the keyboard is not accepted.
The assigned string value begins at the cursor position and ends at the
rightmost column for that line in display memory. Commas are read as
characters, not as data item separators.
LENTER interacts in a special way with an active JOINFORM. This is
described in detail in Appendix F.
Syntax
LENTER
str_var
Parameters
str_var
A string variable that will accept the data. An error
occurs when the input string value exceeds its maximum
length. If this value is a substring, and the input
string value exceeds its length, the input string value
is truncated on the right (no error occurs). See
"Substring References" in chapter 3 for more
information.
Examples
The following examples show the use of the LENTER statement.
320 LENTER Str_var$
330 LENTER Sub_str$ [2;3]
340 LENTER Sub_str$[1]
LET
The LET statement assigns a value to one or more variables.
Syntax
{
num_var
[,
num_var
]...=
num_expr
}
[LET] {
str_var
[,
str_var
]...=
str_expr
}
Parameters
num_var
Numeric variable(s) that the value of
num_expr
is/are
assigned.
str_var
String variable(s) that the value of
str_expr
is/are
assigned.
num_expr
Value that
num_var
will contain. This can be either a
literal, or an expression.
str_expr
Value that
str_var
will contain. This can be either a
literal or an expression.