fgl_report_getTotalNumberOfPages

Returns the total number of pages produced by the report.

Syntax

fgl_report_getTotalNumberOfPages()
     RETURNS pageCount INTEGER

Usage

This function must be called after the FINISH REPORT statement. Calling the function at any other time might return random results.

Example

This sample code displays the total number of pages after the report is finished:

 FINISH REPORT report_all_orders
 DISPLAY "Produced "||fgl_report_getTotalNumberOfPages()||" page(s)"

For an example of Genero code using a reporting function, see Using report output functions. This example may not use the specific function discussed in this topic, however it provides details on where you would place this (and other) report output functions.