PreviousNextIndex

PAGE statement

Starts a new output page for PAGED output. No action is taken if output is already positioned at the beginning of a page.

Syntax

PAGE [ STREAM stream | STREAM-HANDLE handle ] 

STREAM stream
STREAM-HANDLE handle
Example

This procedure prints a customer report, categorized by state, and starts a new page for each state:

r-page.p
DEFINE VARIABLE laststate AS CHARACTER NO-UNDO. 
OUTPUT TO PRINTER. 
FOR EACH Customer NO-LOCK BY Customer.State: 
  IF Customer.State <> laststate THEN DO: 
    IF laststate <> "" THEN PAGE. 
    laststate = Customer.State. 
  END. 
  DISPLAY Customer.CustNum Customer.Name Customer.Address Customer.City 
Customer.State. 
END. 

Notes
See also

DEFINE STREAM statement, OUTPUT TO statement, Stream object handle


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex