HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
4- 42
are updated, totals are reset and OLDCV values are reset. This
process is described under TRIGGER BREAK.
* Accumulate all TOTALS. GRAND TOTALS are evaluated and added
first, then TOTALS are done in ascending level number order.
* Evaluate the PRINT DETAIL IF statement. If the statement does
not occur, or if the expression is true (nonzero), do the
following:
* Evaluate the WITH clause of DETAIL LINE. If the number of
lines left before the page trailer or end of page is smaller
than the WITH value, automatically trigger a page break. If
a WITH clause is not specified, there must be one line left
on the page.
* If the USING clause is present on the DETAIL LINE statement,
print the detailed line as indicated by the USING clause and
the expressions that follow it.
DIM
The DIM statement declares one or more string or array variables.
Syntax
DIM
type_list
[,
type_list
]...
Parameters
{[
type
]
num_item
[,
num_item
]...}
type_list
{
non_num_item
}
type
One of the following:
SHORT INTEGER
INTEGER
SHORT DECIMAL
DECIMAL
SHORT REAL
SHORT (Current default type, either a REAL or a
DECIMAL)
REAL
unspecified
If a type is not specified, implicit declaration
rules apply. (These rules are explained in
"Implicit Declaration" in chapter 3). After
type
,
each
num_item
is of that type until another
type
or a
non_num_item
appears.
num_item
A numeric variable name or a numeric array
declaration. A numeric array is declared as:
identifier
[(
array_subscripts
)]
non_num_items
A scalar string variable name or a string array
declaration. A scalar string variable can be
declared as either of the following:
{
identifier
$ }
{
identifier
$[
num_expr3
]}
The first declaration results in a scalar string
variable that can contain a maximum of 18
characters (default length). The second
declaration specifies the maximum length that the
string may contain is
num_expr3
characters.
A string array is declared as either of the
following:
{
identifier
$(
array_subscripts
) }
{
identifier
$(
array_subscripts
)[
num_expr3
]}