Caché MultiValue Basic Reference
ABORT, ABORTE, ABORTM
Terminates program execution and returns to MVBasic shell.
ABORT [errcode [,val1[,val2]]]
ABORTE [errcode [,val1[,val2]]]
||Optional A MultiValue error code; commonly (but not always) specified as a positive integer. The error code can be specified as a literal or as a expression that resolves to a literal value. A non-numeric literal value must be specified as a quoted string.
||Optional A comma-separated list of one or more literal values to insert into the error message corresponding to errcode. These insert values can be specified as literals or as expressions that resolves to a literal value. A non-numeric literal value must be specified as a quoted string.
||Optional An expression that resolves to a literal error message text, specified as a quoted string.
statements are used to terminate program execution and return to the MVBasic shell programming prompt. If an argument is specified, they use this argument to display an error message before terminating program execution.
with an specified argument uses the literal message
as the error message to display.
in Caché MVBasic is functionally identical to ABORTE
. Depending on the emulation setting, ABORT
in other MultiValue emulations may be functionally identical to either ABORTE
An abort operation resets the @LEVEL
system variable to 0.
ABORT and STOP
command terminates all program execution and returns to the programming prompt. The STOP
terminates the executing routine and returns control to the calling routine.
During debugging, STOP
terminates the debugging session. The debugger treats an ABORT
as an error condition; the debugger performs a break operation to allow for examination of the condition causing the ABORT
© 1997-2019 InterSystems Corporation, Cambridge, MA