Progress
Language Reference


PAGE-NUMBER Function

Interfaces
OS
SpeedScript
All
All
Yes

Returns the page number of the output destination. If the output stream is not paged, PAGE-NUMBER returns a value of 0.

SYNTAX

PAGE-NUMBER [ ( stream ) ] 

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.

EXAMPLE

This procedure creates a customer report with a page number on each page.

r-pgnbr.p
OUTPUT TO pagenum.txt PAGED.
FOR EACH customer:
  FORM HEADER "Customer report" AT 30
    "Page:" AT 60 PAGE-NUMBER FORMAT ">>9" SKIP(1).
  DISPLAY cust-num name address city state country.
END. 

SEE ALSO

OUTPUT TO Statement, PAGE Statement


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095