HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
5- 24
Syntax
NUMBREAK(
level
)
Parameters
level
The summary level number. This must be in the range [0,
9].
Example
100 No_conds = NUMBREAK(level3) !Returns the number of break
101 !BREAK conditions satisfied
NUMDETAIL
This Report Writer function returns the number of DETAIL LINES with a
non-zero
totals_flag
executed for the given level. This value is reset
to zero each time a break occurs at the indicated level. If a report is
not active, an error occurs.
The level number can be zero. Zero returns the total number of DETAIL
LINE statements that accumulate totals. This value is used by the AVG
function.
Syntax
NUMDETAIL(
level
)
Parameters
level
The summary level number. This must be in the range of
[0, 9]
Example
110 Numbers = NUMDETAIL(Level1) !Numbers receives the number of
111 !DETAIL LINES executed.
NUMLINE
The NUMLINE function is a Report Writer function that returns the number
of lines printed on the current page. This number includes the blank
lines at the top of the page (from PAGE LENGTH) and the page header.
Each line printed with DETAIL LINE, PRINT, or PRINT USING also increments
this value. If no report is active, -1 is returned.
Syntax
NUMLINE
Examples
100 Lines= NUMLINE !Lines receives the number of lines on the current page
NUMREC
The NUMREC function returns the number of records in a file that contain
data.
Syntax
NUMREC(
fnum
)
Parameters
fnum
The file number that HP Business BASIC/XL uses to
identify the file. It is a numeric expression that
evaluates to a positive short integer. An optional #
can precede
fnum
.
Example
110 Filesize= NUMREC(2) !Filesize is the number of records in file 2