Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- QuickBASIC 3.0 - <b>clear close files, reset variables, set stack space</b> http://www.X-Hacker.org [<<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

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