HP 3000 Manuals

Report Writer Built-in Functions [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation


HP Business BASIC/XL Reference Manual

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.                             |
|                           |                                                              |
--------------------------------------------------------------------------------------------
|                           |                                                              |
| RWINFO (Expression)       | Returns various pieces of information that is useful in      |
|                           | controlling the Report Writer.                               |
|                           |                                                              |
--------------------------------------------------------------------------------------------
|                           |                                                              |
| TOTAL (Level, Sequence)   | Returns accumulated totals.                                  |
|                           |                                                              |
--------------------------------------------------------------------------------------------



MPE/iX 5.0 Documentation