PAUSE statement
Suspends processing indefinitely, or for a specified number of seconds, or until the user presses any key.
Note: Does not apply to SpeedScript programming.Syntax
n
BEFORE-HIDEMESSAGEmessage
NO-MESSAGEIN WINDOWwindow
ExampleThe FOR EACH block in this procedure reads each of the records from the Customer table and displays information from each record. Because the DISPLAY uses a down frame (multiple records displayed in the frame), the AVM usually fills the window with as many records as possible and then displays the message: “Press spacebar to continue”. The PAUSE 2 BEFORE-HIDE message tells the AVM to pause only two seconds before hiding the frame and displaying additional records.
Notes
- After you use PAUSE, that statement is in effect for all the procedures run in that session unless it is overridden by other PAUSE statements in those procedures, or until you return to the Editor.
- Using the PAUSE
n
BEFORE-HIDE statement is a good way to write a demonstration application that runs by itself.- The AVM automatically pauses before removing a frame and displays the “Press spacebar to continue” message if you have not had a chance to see the data in the frame.
- When a PAUSE occurs, the AVM clears any keystrokes buffered from the keyboard, discarding any type-ahead characters.
OpenEdge Release 10.2B
|