is used to find out the number of records read: selected both by the source of the report AND by the filter code (if it exists).
// If more than 100 records have been read
IF RPT_CustomerReport.NbRecRead > 100 THEN
// The print of "RPT_CustomerReport" is stopped
<Result> = <Report used>.NbRecRead
Number of records read.
<Report used>: Report name
Name of the report to be used.
Number of records
- The NbRecRead property returns the number of records selected by the source of the report (query, view, memory area or Table control).
- The NbPrintedRec property returns the number of records selected both by the source of the report AND by the filter code (if any).
- The NbRecRead and NbPrintedRec properties return the same value for a report based on a file: the number of records in the file AND selected by the filter code (if any).
- The TotalNbRec property is used to determine and change the number of records to print. The number of records to print will be included between 1 and NbPrintedRec.
The NbRecRead property cannot be used on reports without a data source.