END

The END keyword marks the end of a compound 4GL statement.

4GLREF00000139.gif

keyword is a keyword that specifies the name of the 4GL statement to be delimited, from among the keywords listed below.

The END keyword marks the last line of a compound 4GL statement. This is a compile-time indicator of the end of the statement construct. (Use the EXIT keyword, rather than END, to terminate execution of a compound statement.)

Several compound statements of 4GL support END keywords to mark the end of the statement construct within the source code module:

CASE
FOREACH
INPUT
PROMPT
CONSTRUCT
FUNCTION
INPUT ARRAY
REPORT
DISPLAY ARRAY
GLOBALS
MAIN
WHILE
FOR
IF
MENU

 
The END DISPLAY keyword delimits the DISPLAY ARRAY statement, and END INPUT delimits both INPUT and INPUT ARRAY. Unlike EXIT statement clauses, no more than one END statement clause can appear within the specified statement, but most compound statements of 4GL can be nested.

References

CASE
INPUT
CONSTRUCT
INPUT ARRAY
DISPLAY ARRAY
MAIN
FOR
MENU
FOREACH
PROMPT
FUNCTION
REPORT
GLOBALS
WHILE
IF