HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
7-4
report. However, once the report output starts, PRINT statements count
as lines in the report.
The following are Report Writer executable statements:
* BEGIN REPORT
* DETAIL LINE
* TRIGGER BREAK
* END REPORT
* STOP REPORT
* TRIGGER PAGE BREAK
* SUPPRESS HEADER
* SUPPRESS TRAILER
* SET PAGENUM
Report Writer Built-in Functions
The Report Writer built-in functions have two main purposes. Some of
these functions retrieve information Report Writer has kept for you, such
as the automatic totals. Other functions help you control Report Writer
flow and output.
Unlike the Report Writer statements, the Report Writer built-in functions
are used in subunits other than the one containing the report.
The functions are listed in Table 7-1, along with a brief description.
They are defined and explained in chapter 5.
Table 7-1. Report Writer Functions and Returned Values
--------------------------------------------------------------------------------------------
| | |
| Function | Description |
| | |
--------------------------------------------------------------------------------------------
| | |
| AVG (Level,Sequence) | Returns the average value of a totaled item. |
| | |
--------------------------------------------------------------------------------------------
| | |
| LASTBREAK | Returns the level number of the last BREAK statement |
| | satisfied. |
| | |
--------------------------------------------------------------------------------------------
| | |
| NUMBREAK (Level) | Returns the number of BREAK conditions satisfied for the |
| | given level. |
| | |
--------------------------------------------------------------------------------------------
| | |
| NUMDETAIL (Level) | Returns the number of DETAIL LINES with a non-zero |
| |
totals_flag
executed for the given level. |
| | |
--------------------------------------------------------------------------------------------
| | |
| OLDCV (Level) | Returns the value of a BREAK WHEN control expression. |
| | |
--------------------------------------------------------------------------------------------
| | |
| OLDCV$(Level) | Returns the value of a BREAK WHEN control expression. |
| | |
--------------------------------------------------------------------------------------------
| | |
| NUMLINE | Returns the number of lines printed on the current page. |
| | |
--------------------------------------------------------------------------------------------
| | |
| PAGENUM | Returns the current page number. |
| | |
--------------------------------------------------------------------------------------------
| | |