Function Break() Foundation
Interrupts execution of the current thread.
Break( [<Expression>] ) --> NIL
The return value of Break() is always NIL.
The function Break() is generally used only as part of error handling during run time of a program. It is normally called within the BEGIN SEQUENCE..END control structure and is identical in functionality to the BREAK statement. The function Break() (contrary to the BREAK statement) can be called from within a code block. Because of this, Break() is frequently used in user-defined error handling code blocks assigned to the Xbase++ error handling system with the function ErrorBlock().
Break() interrupts the execution of the thread that calls this function. If it is embedded in BEGIN SEQUENCE .. END the thread resumes after the RECOVER or END statement, otherwise the thread will be terminated. When Break() is called in the very first thread outside BEGIN SEQUENCE .. END the program is canceled.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.