END statement
Indicates the end of a block started with a CASE, CATCH, CLASS, CONSTRUCTOR, DESTRUCTOR, DO, FINALLY, FOR, FUNCTION, INTERFACE, METHOD, PROCEDURE, or REPEAT statement or the end of an EDITING phrase, Trigger phrase, or the implementation of a GET or SET property accessor.
Syntax
[ CASE | CATCH | CLASS | CONSTRUCTOR | DESTRUCTOR | FINALLY | FUNCTION |
GET | INTERFACE | METHOD | PROCEDURE | SET | TRIGGERS ]ExampleThis procedure contains two blocks, each ending with the END statement:
Notes
- Two blocks, the CATCH block and the FINALLY block, are called end blocks because they must appear after the last line of executable code and before the END statement. CATCH blocks must appear before FINALLY blocks. See the entries for these two blocks for information about usage.
- If you do not use any END statements in a procedure, ABL assumes that all blocks end at the end of the procedure.
- If you use any END statements in a procedure, you must use one END statement for every block in the procedure.
See alsoCASE statement, CATCH statement, CLASS statement, CONSTRUCTOR statement, DEFINE PROPERTY statement, DESTRUCTOR statement, DO statement, EDITING phrase, FINALLY statement, FOR statement, FUNCTION statement, INTERFACE statement, METHOD statement, PROCEDURE statement, REPEAT statement, Trigger phrase
OpenEdge Release 10.2B
|