48 lines
1.7 KiB
HTML
48 lines
1.7 KiB
HTML
<HTML>
|
|
<HEAD><TITLE>QuickBASIC 3.0 - Long Entry</TITLE></HEAD>
|
|
<BODY>
|
|
|
|
<A HREF="ng1ff42.html">[<<Previous Entry]</A>
|
|
<A HREF="ng320.html">[^^Up^^]</A>
|
|
<A HREF="ng209fe.html">[Next Entry>>]</A>
|
|
<A HREF="menu.html" >[Menu]</A>
|
|
<A HREF="info.html">[About The Guide]</A>
|
|
<HR>
|
|
<PRE>
|
|
<B>ON...GOSUB Branch to nth Item in Subroutine List</B>
|
|
|
|
<B>ON</B> <U>n</U> <B>GOSUB</B> {<U>linenum</U> | <U>linelabel</U>}, [,{<U>linenum</U> | <U>linelabel</U>}]...
|
|
|
|
Causes QuickBASIC to branch to one of a list of subroutine starting
|
|
lines.
|
|
|
|
<U>n</U> A numeric variable in the range 0 to 255. Upon execution
|
|
of the ON...GOSUB statement, QuickBASIC branches to the
|
|
<U>n</U>th item in the list of line numbers that follows the
|
|
keyword GOSUB.
|
|
|
|
<U>linenum</U> The first line number of a subroutine.
|
|
|
|
<U>linelabel</U> A label identifying the first line of a subroutine.
|
|
|
|
-----------------------------------------------------------------------
|
|
|
|
<B>Notes:</B> If <U>n</U> is a noninteger numeric value, QuickBASIC rounds <U>n</U>.
|
|
|
|
If <U>n</U> is 0 or larger than the number of items in the
|
|
subroutine list, QuickBASIC continues with the next
|
|
executable statement.
|
|
|
|
If <U>n</U> is negative or larger than 255, an Illegal Function
|
|
Call error occurs.
|
|
</PRE>
|
|
<HR>
|
|
<B>See Also:</B>
|
|
<A HREF="ng209fe.html">ON...GOTO</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>
|