Misplaced Pages

GOSUB

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.

This is an old revision of this page, as edited by Oskilla (talk | contribs) at 14:47, 22 March 2011 (Undid revision 411476860 by 68.183.81.225 (talk) non-encyclopedic). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Revision as of 14:47, 22 March 2011 by Oskilla (talk | contribs) (Undid revision 411476860 by 68.183.81.225 (talk) non-encyclopedic)(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

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.

Stub icon

This computer-programming-related article is a stub. You can help Misplaced Pages by expanding it.

See also

References

  1. "GOSUB...RETURN Statement Details". Microsoft. 1988. Retrieved 2008-07-04.
  2. "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.
Stub icon

This programming-language-related article is a stub. You can help Misplaced Pages by expanding it.

Categories: