[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
CLEAR                    Close Files, Reset Variables, Set Stack Space

 CLEAR [,,stack]

    Closes all files, clears all COMMON variables, resets all numeric
    variables to 0 and all string variables to null, releases all disk
    buffers, resets the stack, and optionally specifies the size of the
    stack.

       stack    Specifies, in bytes, the size of QuickBASIC's stack. The
                default is 768 bytes; the minimum is 512 bytes.

   -----------------------------------------------------------------------

      Notes:    CLEAR destroys pending return addresses left on the stack
                by GOSUB, FOR/NEXT, and WHILE/WEND.

                CLEAR does not affect symbolic constants.

                QuickBASIC's CLEAR differs from the Interpreter's in two
                ways:

                1.  The Interpreter's CLEAR statement destroys all DEF FN
                    and DEFtype statements. QB's does not.

                2.  The interpreter's default stack is 512 bytes. QB's is
                    768.

See Also: ERASE
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson