PreviousNextIndex

PAGE-NUMBER function

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

PAGE-NUMBER [ ( stream | STREAM-HANDLE handle ) ] 

stream
STREAM-HANDLE handle
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 NO-LOCK: 
  FORM HEADER "Customer report" AT 30 
    "Page:" AT 60 PAGE-NUMBER FORMAT ">>9" SKIP(1). 
  DISPLAY Customer.CustNum Customer.Name Customer.Address Customer.City 
    Customer.State Customer.Country. 
END. 

See also

DEFINE STREAM statement, OUTPUT TO statement, PAGE statement, Stream object handle


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex