dos_compilers/Microsoft QuickBASIC v3/manual/ng2dcc2.html
2024-07-01 13:00:14 -07:00

46 lines
1.5 KiB
HTML

<HTML>
<HEAD><TITLE>QuickBASIC 3.0 - Long Entry</TITLE></HEAD>
<BODY>
<A HREF="ng2db1d.html">[&lt;&lt;Previous Entry]</A>
<A HREF="ng320.html">[^^Up^^]</A>
<A HREF="ng2e004.html">[Next Entry&gt;&gt;]</A>
<A HREF="menu.html" >[Menu]</A>
<A HREF="info.html">[About The Guide]</A>
<HR>
<PRE>
<B>SHARED Declare Global Variables</B>
<B>SHARED</B> <U>varlist</U>
Declares one or more variables in a subprogram global.
<U>varlist</U> A comma-delimited list of valid variable and/or array
names; array names should be followed by empty
parentheses.
-----------------------------------------------------------------------
<B>Notes:</B> 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.
</PRE>
<HR>
<B>See Also:</B>
<A HREF="nga150.html">COMMON</A>
<A HREF="ngdcd0.html">DIM</A>
<A HREF="ng2fea2.html">SUB...END SUB</A>
<HR>
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by <A HREF="http://www.acemake.com/hagbard">Dave Pearson</A>
<HR>
</BODY>
</HTML>