[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
BREAK()
Branch out of a BEGIN SEQUENCE...END construct
------------------------------------------------------------------------------
Syntax
BREAK(<exp>) --> NIL
Arguments
<exp> is the value passed to the RECOVER clause, if any. Note that
<exp> is not optional. NIL may be specified if there is no break value.
Returns
BREAK() always returns NIL.
Description
The BREAK() function is identical in functionality to the BREAK
statement. The function must be executed during a SEQUENCE. BREAK()
has the advantage that, as an expression, it can be executed from a code
block.
Examples
. This example illustrates exiting a SEQUENCE from a code block:
bSave := ERRORBLOCK( {|x| BREAK(x)} )
BEGIN SEQUENCE
.
.
.
RECOVER USING objError
.
.
.
END
ERRORBLOCK(bSave)
Files Library is CLIPPER.LIB.
See Also:
BEGIN SEQUENCE
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson