Revision as of 05:45, 9 April 2010 edit79.109.222.212 (talk)No edit summary← Previous edit | Revision as of 20:40, 18 September 2010 edit undoAndreas Kaufmann (talk | contribs)Extended confirmed users, Pending changes reviewers7,176 editsm Removed Category:Control flow (using HotCat)Next edit → | ||
Line 11: | Line 11: | ||
{{compu-lang-stub}} | {{compu-lang-stub}} | ||
] | |||
] | ] | ||
Revision as of 20:40, 18 September 2010
GOSUB is a command in many versions of the BASIC computer programming language. 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.
Not all BASIC implementations support GOSUB. For example, in FreeBASIC it is considered as deprecated in favor of SUB/FUNCTION, and is disabled by default.
This computer-programming-related article is a stub. You can help Misplaced Pages by expanding it. |
See also
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. |