Caché MultiValue Basic Reference
BREAK
[Back] [Next]
   
Server:docs2
Instance:LATEST
User:UnknownUser
 
-
Go to:
Search:    

Enables or disables keys that pause program execution.
Synopsis
BREAK [KEY] { ON | OFF }
BREAK [KEY] flag
Arguments
flag An expression that evaluates to a boolean value. 0=disable break keys. 1 (or any non-zero number)=enable break keys.
Description
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.
Emulation
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