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>release</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
RELEASE


Syntax:     RELEASE <memvar list>/[ALL[LIKE/EXCEPT <skeleton>]]

Purpose:    To delete memory variables.

Arguments:  <memvar list> is a list of memory variables to delete.

            <skeleton> is a wildcard mask specifying a group of
            memory variables to delete or exclude from deletion.

Usage:      The effect of RELEASE differs depending on whether the ALL
            clause is specified.  If it is, then only PRIVATE memory
            variables created at the current procedure level are
            deleted.  If it is omitted and memory variables are
            explicitly specified in the <memvar list>, the most recent
            instance of a specified variable is deleted, even if the
            variable is PUBLIC or was created in a higher level
            procedure.

            Note that RELEASEing the local or most recent instance of a
            memory variable does not cause previous hidden instances
            (PUBLIC variables, or PRIVATE variables defined in higher
            level procedures) to become accessible.  This only occurs
            upon termination of the procedure in which the variable was
            created.

            For more information on variable scoping, refer to the
            PRIVATE and PUBLIC.

Library:    CLIPPER.LIB


----------------------------------- Example --------------------------------

   PUBLIC one
   one = "1"
   DO Proc2

   ? TYPE("one")              && Result: C

   RETURN


   PROCEDURE Proc2
   PRIVATE one
   one = "2"
   DO Proc3

   ? TYPE("one")              && Result: U

   RETURN


   PROCEDURE Proc3
   RELEASE one                && Releases "one" from Proc2

   ? TYPE("one")              && Result: U

   RETURN


See Also: CLEAR ALL CLEAR MEMORY PRIVATE PUBLIC QUIT

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