PreviousNextIndex

DOWN statement

Positions the cursor on a new line in a down or multi-line frame.

When the block specifying the down frame iterates, the AVM automatically advances one frame line. Use the DOWN statement if you want to move to a different display line at any time.

For more information on down frames, see the DOWN option of the Frame phrase.

Note: Does not apply to SpeedScript programming.
Syntax

DOWN [ STREAM stream | STREAM-HANDLE handle ] [ expression ] 
     { [ frame-phrase ] } 

STREAM stream
STREAM-HANDLE handle
expression
frame-phrase
Example

This procedure prints a Customer report that is sorted by State, with one line after the last Customer in each state:

r-down.p
DEFINE VARIABLE laststate AS CHARACTER NO-UNDO. 
FOR EACH Customer NO-LOCK BY Customer.State: 
  IF Customer.State <> laststate THEN DO: 
    IF laststate <> "" THEN DOWN 1. 
    laststate = Customer.State. 
  END. 
  DISPLAY Customer.CustNum Customer.Name Customer.City Customer.State. 
END. 

Notes
See also

DEFINE STREAM statement, Frame phrase, SCROLL statement, Stream object handle, UP statement


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex