Progress
Language Reference


DOWN Statement

Interfaces
OS
SpeedScript
All
All
No

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

When the block specifying the down frame iterates, Progress 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.

SYNTAX

DOWN [ STREAM stream ] [ expression ] { [ frame-phrase ] } 

STREAM stream

Specifies the name of a stream. If you do not name a stream, Progress uses the unnamed stream. See the DEFINE STREAM Statement reference entry and the "Alternate I/O Sources" chapter of the Progress Programming Handbook for more information on streams.

expression

The number of occurrences of data in the frame that you want to move down.

DOWN is the same as DOWN 1, except for the following:

frame-phrase

Specifies the overall layout and processing properties of a frame. For more information on frame-phrase, see the Frame Phrase reference entry.

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.

FOR EACH customer BY state:
    IF state <> laststate THEN DO:
         IF laststate <> "" THEN DOWN 1.
         laststate = state.
    END.
    DISPLAY cust-num name city state.
END. 

NOTES

SEE ALSO

DEFINE STREAM Statement, Frame Phrase, SCROLL Statement, UP Statement


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