Progress
Language Reference
LEAVE Statement
Exits from a block. Execution continues with the first statement after the end of the block.
SYNTAX
label
The name of the block you want to leave. If you do not name a block, Progress leaves the innermost iterating block that contains the LEAVE statement. If there is no such block, then Progress leaves the procedure block.
EXAMPLEThis procedure represents part of a menu program. If the user chooses N, P, F, or Q, the procedure leaves the inner choose block and goes on to process the menu selection. If the user presses any other key, the procedure rings the terminal bell.
SEE ALSO
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |