PreviousNextIndex

UP 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 UP 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

UP [ STREAM stream | STREAM-HANDLE handle ] [ expression ] [ frame-phrase ] 

STREAM stream
STREAM-HANDLE handle
expression
frame-phrase
Example

This procedure starts at the bottom of the screen and displays all the Customer database records. The default frame for the FOR EACH block is a down frame. The DISPLAY statement uses that frame. Therefore, the AVM automatically advances down the screen one line after each iteration. You must use an UP 2 rather than an UP 1 because there is an automatic DOWN 1 performed on the display frame at the end of each iteration of the FOR EACH block.

r-up.p
FOR EACH Customer: 
  UP 2. 
  DISPLAY Customer.CustNum Customer.Name Customer.City. 
END. 

Notes
See also

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


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex