Caché MultiValue Basic Reference
[Home] [Back] [Next]
InterSystems: The power behind what matters   

Enables or disables keys that pause program execution.
BREAK [KEY] flag
flag An expression that evaluates to a boolean value. 0=disable break keys. 1 (or any non-zero number)=enable break keys.
The BREAK statement is used to enable or disable terminal keys that can pause program execution. It can be executed using the ON or OFF keyword, or by using a boolean flag value. These two forms are functionally identical.
When BREAK is enabled (ON), the Interrupt, Suspend, and Quit keys will cause program execution to be suspended. When BREAK is disabled (OFF) these keys have no effect on program execution. The BREAK setting determines how Ctrl-C is handled when typed at the INPUT prompt.
The KEY keyword is optional and performs no function; it is provided for code compatibility only.
The MVBasic BREAK statement performs the same operation as the various MultiValue command line BREAK commands. Issuing any of these statements increments or decrements a counter. Thus multiple BREAK OFF statements (of any type) must be reversed by an equal number of BREAK ON statements.
jBASE emulation supports an argumentless BREAK statement as a synonym for EXIT. Refer to the EXIT statement for details. In jBASE emulation, BREAK statements simply enable or disable (toggle) without maintaining a counter.
See Also

Send us comments on this page
Copyright © 1997-2019 InterSystems Corporation, Cambridge, MA