[<<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
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson