TotalPages$

Purpose:

Returns the total number of pages. The returned string is replaced by the total number of pages when printing.

This function is for display only and cannot be used in formulas. A calculation of the formula Val(TotalPages$()) is not possible. This function cannot be used in Formatted Text Objects.

In Group Headers of a table TotalPages$() can be reset to "0" via "Break Before > Reset Page Counter".

Please note when using this function that the timing behavior of the print process can be affected. A progress bar may reach 100% faster, but because of further processing of the output, there may be a delay before the actual printout is produced. No calculations may be performed with the result of this function.

Parameter:

-

Return value:

String

Example:

"Page "+Page$()+"/"+TotalPages$()                   Result: Page 1/3