Previous Next

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 
 
END [ CASE | CATCH | CLASS | CONSTRUCTOR | DESTRUCTOR | FINALLY | 
       FUNCTION | GET | INTERFACE | METHOD | PROCEDURE | SET | TRIGGERS ]
[ CASE | CATCH | CLASS | CONSTRUCTOR | DESTRUCTOR | FINALLY | FUNCTION |
GET | INTERFACE | METHOD | PROCEDURE | SET | TRIGGERS ]
An option that can appear following any END statement that terminates the block for a statement or phrase that is specified with the same name.
Example 
This procedure contains two blocks, each ending with the END statement:
 
FOR EACH Customer NO-LOCK:
  DISPLAY Customer.CustNnum Customer.Name Customer.Phone.
  FOR EACH Order OF Customer NO-LOCK:
    DISPLAY Order WITH 2 COLUMNS.
  END.
END.
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.
*
*
See also 
CASE 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

Previous Next
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates.