basic.break

Statement/BASIC Program, Releases: AP and R83

Enables or disables the break key.

Syntax

break off break on break expression

Description

enables or disables the <break> key.

The break key, if enabled, interrupts the current process and either invokes the Pick/BASIC debugger or pushes a level.

'break off' disables the <break> key.

'break on' reverses the effect of the last executed 'break off' command. If multiple 'break off' statements are executed, an equal number of 'break on' statements must be executed to return to a 'breakable' state.

In the 'expression' form, the break key is disabled when the expression evaluates to false. It is enabled when the expression evaluates to true. In an expression, 0 = 'break off' and non-zero = 'break on'.

Example

break user = 'fred'

If the value of 'user' is 'fred', this has the same effect
as issuing the statement 'break on'.

See Also

Command Name Type Description
basic.statements Definition Definition of statements and functions.
basic.break.off Statement see 'break'.
basic.debug Statement Invokes Pick/BASIC debugger.
tcl.level.pushing Definition Description of level pushing.
tcl.break-key-on Verb: Access Invokes 'break-key' with 'n' option.
tcl.break-key Verb: Access Enables or disables break key.
tcl.break-key-off Verb: Access Invokes 'break-key' with 'f' option.
basic.break.on Statement
ue.218d User Exit Disables the break key.
ue.318d User Exit Enables the break key.

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.