Revision as of 11:22, 9 February 2008 editFurrykef (talk | contribs)Administrators33,804 editsmNo edit summary← Previous edit | Revision as of 15:01, 4 July 2008 edit undoRCX (talk | contribs)1,242 edits cleanupNext edit → | ||
Line 1: | Line 1: | ||
'''GOSUB''' is a command in many versions of ]. GOSUB statements branch to simple kinds of ] without (sometimes with) parameters or local variables, the ] command resuming program flow from the point at which GOSUB was invoked. | '''GOSUB''' is a command in many versions of ]. GOSUB statements branch to simple kinds of ] without (sometimes with) parameters or local ], the ] command resuming ] from the point at which GOSUB was invoked. The GOSUB command is convenient for performing the same function several times in a BASIC program without duplicating the code.<ref>{{cite web|url=http://www.qbasicnews.com/qboho/qckadvr.gosubr.shtml|title=GOSUB...RETURN Statement Details.|date=1988|accessdate=2008-07-04|author=|publisher=]}}</ref> Some BASIC implementations, such as ], do not implement GOSUB.<ref>{{cite web|url=http://www.freebasic.net/wikka.php?wakka=KeyPgGosub|title=GOSUB|date=2008-05-08|accessdate=2008-07-04|author=|publisher=|quote="Gosub support is disabled by default in the -lang fblite unless the Option Gosub statement is used."}}</ref> | ||
==See aslo== | |||
The GOSUB command is convenient for performing the same function several times in a BASIC program without duplicating the code. Some BASIC implementations, such as ], do not implement GOSUB. This may lead to overuse of the ] statement and to less structured code. | |||
* ] | |||
==References== | |||
{{reflist}} | |||
{{compu-lang-stub}} | {{compu-lang-stub}} | ||
] | |||
] | ] |
Revision as of 15:01, 4 July 2008
GOSUB is a command in many versions of BASIC. GOSUB statements branch to simple kinds of subroutines without (sometimes with) parameters or local variables, the RETURN command resuming program flow from the point at which GOSUB was invoked. The GOSUB command is convenient for performing the same function several times in a BASIC program without duplicating the code. Some BASIC implementations, such as FreeBASIC, do not implement GOSUB.
See aslo
References
- "GOSUB...RETURN Statement Details". Microsoft. 1988. Retrieved 2008-07-04.
- "GOSUB". 2008-05-08. Retrieved 2008-07-04.
Gosub support is disabled by default in the -lang fblite unless the Option Gosub statement is used.
This programming-language-related article is a stub. You can help Misplaced Pages by expanding it. |