Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper 5.2 . The Guide To CA-Clippe - <b>break()</b> http://www.X-Hacker.org [<<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.

 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

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson