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

47 lines
1.6 KiB
HTML

<HTML>
<HEAD><TITLE>QuickBASIC 3.0 - Long Entry</TITLE></HEAD>
<BODY>
<A HREF="ng12b5a.html">[&lt;&lt;Previous Entry]</A>
<A HREF="ng320.html">[^^Up^^]</A>
<A HREF="ng13449.html">[Next Entry&gt;&gt;]</A>
<A HREF="menu.html" >[Menu]</A>
<A HREF="info.html">[About The Guide]</A>
<HR>
<PRE>
<B>GOSUB Execute Subroutine</B>
<B>GOSUB</B> {<U>linenum1</U> | <U>linelabel1</U>}
.
. [<U>statements</U>]
.
<B>RETURN</B> [{<U>linenum2</U> | <U>linelabel2</U>}]
Causes program execution to branch to the specified line number or
line label; when the RETURN statement is encountered, execution
branches to the statement immediately following the most recent GOSUB
statement--or to a specified line number or line label.
----------------------------------------------------------------------
<B>Notes:</B> If RETURN <U>linenumber2</U> or <U>linelabel2</U> is used, the return
must be made to a statement in the calling routine--i.e.,
the main program or the subroutine from which the current
subroutine was called.
Subroutines may be called any number of times, from any
number of different points in a program. They may be
nested, and they may have multiple RETURN statements.
</PRE>
<HR>
<B>See Also:</B>
<A HREF="ngc7f7.html">DEF FN</A>
<A HREF="ng2b513.html">RETURN</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>