END


General Form:

     END


END as a statement

The END statement is used to indicate that the end of the current program has been reached. When the END statement is executed the program stops permanently and control passes to the workbench. Unlike STOP, issuing the CONTINUE command after an END is not allowed. This statement should only be used while developing and debugging code, it should not be included in applications software as users will not want to be presented with the development environment. Consider using $END instead.

END as a function

The reserved word END can also be used as part of a conditional statement to test whether the end of the file was reached on a previous READ #. Refer to the IF ... END IF statement for more information.

See also:

$END, STOP