C5_BREAK

 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


Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.