The STOP condition represents a run-time occurrence that requires an application to end the session. Default handling for the STOP condition includes rolling back all current transactions. The STOP condition occurs when:
Your application executes a STOP statement.
An application user presses the key mapped to the STOP keycode when input is enabled.
The AVM encounters a system error that is deemed unrecoverable. For example, if the AVM detects a lost database connection or cannot find a procedure file specified in a RUN statement, the AVM raises the STOP condition.