PAGE-NUMBER function
- Last Updated: January 18, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Returns the page number of the output destination as an INTEGER value. If the output stream is not paged, PAGE-NUMBER returns a value of 0.
Syntax
|
- stream
- The name of an output stream. If you do not name a stream, PAGE-NUMBER returns the page number of the default unnamed output stream.
- STREAM-HANDLE handle
- The handle to an output stream. If handle it is not a valid handle to a stream, the AVM generates a run-time error.
Example
This procedure creates a customer report with a page number on each page:
r-pgnbr.p
|
See also
DEFINE STREAM statement, OUTPUT TO statement, PAGE statement, Stream object handle