Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo Basic - <b>local declare local variables</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
LOCAL                    Declare Local Variables

 LOCAL varlist

    Declares one or more local variables in a procedure (subprogram) or
    function.

     varlist    A comma-delimited list of variables.

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

      Notes:    LOCAL may be used only within multiline function
                definitions and procedures, and the LOCAL statement must
                appear before any executable statements.

                To declare an array LOCAL, follow the array name with
                empty parentheses, then DIMension the array in a
                subsequent statement.

                Local variables are reinitialized (to 0 or null string)
                each time the procedure or function is invoked.

                Variables not declared in procedures are given the static
                attribute by default.

See Also: DIM SHARED STATIC

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