Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>return</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
RETURN


Syntax:     RETURN [<exp>]

Purpose:    To terminate a procedure or program returning control to
            either the calling procedure or the operating system.

Argument:   <exp> evaluates to the return value for user-defined
            functions.

Usage:      When RETURN executes in the highest level procedure, control
            passes to the operating system.  In a subprocedure, all
            private memory variables created in the current procedure
            are released and control returns to the calling procedure.

            There can be more than one RETURN in a procedure or
            user-defined function.  A procedure or user-defined function
            need not, however, end with a RETURN.  Since user-defined
            functions must return values, each must contain at least one
            RETURN with an argument.

            Note: Clipper does not support RETURN TO MASTER or any
            other form of RETURN specifying the level of the call to
            return to.  You can, however, simulate these operations with
            BEGIN SEQUENCE...END.

Library:    CLIPPER.LIB


----------------------------------- Examples -------------------------------

   PROCEDURE <procedure name>
   *
   <statements>...
   *
   RETURN

   FUNCTION <function name>
   *
   <statements>...
   *
   RETURN <return expression>


See Also: BEGIN SEQUENCE CANCEL PRIVATE PUBLIC

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