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>shared declare global variables</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SHARED                   Declare Global Variables

 SHARED varlist

    Declares one or more variables in a subprogram global.

     varlist    A comma-delimited list of valid variable and/or array
                names; array names should be followed by empty
                parentheses.

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

      Notes:    The SHARED statement may be used only within a subprogram,
                and makes main program variables available only to the
                current subprogram.

                The SHARED attribute, in contrast, may be used in a COMMON
                or DIM statement at the main program level to make
                variables accessible by all subprograms in a module.

                The SHARED statement does not make variables available to
                library routines or subprograms compiled separately.

See Also: COMMON DIM SUB...END SUB

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