GOSUB

GOSUB

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. [cite web|url=http://www.qbasicnews.com/qboho/qckadvr.gosubr.shtml|title=GOSUB...RETURN Statement Details.|date=1988|accessdate=2008-07-04|author=|publisher=Microsoft]

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. [cite web|url=http://www.freebasic.net/wiki/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."]

ee also

* GOTO

References


Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • GOSUB — Este artículo o sección sobre tecnología necesita ser wikificado con un formato acorde a las convenciones de estilo. Por favor, edítalo para que las cumpla. Mientras tanto, no elimines este aviso puesto el 1 de mayo de 2010. También puedes ayudar …   Wikipedia Español

  • Gosub...Return —   [Abk. für Go to Subroutine...Return, dt. »Gehe zum Unterprogramm...kehre zurück«], eine Anweisung in der Programmiersprache Basic, mit der innerhalb einer Routine eine Verzweigung in eine Unterroutine hergestellt werd …   Universal-Lexikon

  • BASICODE — 2 auf einer Compact Cassette BASICODE war ein Computerprojekt mit dem Ziel, einen einheitlichen Sprachstandard für die Programmiersprache BASIC festzulegen. BASIC war zwar auf vielen populären Heimcomputern verbreitet, aber in unzähligen… …   Deutsch Wikipedia

  • BasiCode — 2 auf einer Compact Cassette BASICODE war ein Computerprojekt mit dem Ziel, einen einheitlichen Sprachstandard für die Programmiersprache BASIC festzulegen. BASIC war zwar auf vielen populären Heimcomputern verbreitet, aber in unzähligen… …   Deutsch Wikipedia

  • Basicode — 2 auf einer Compact Cassette BASICODE war ein Computerprojekt mit dem Ziel, einen einheitlichen Sprachstandard für die Programmiersprache BASIC festzulegen. BASIC war zwar auf vielen populären Heimcomputern verbreitet, aber in unzähligen… …   Deutsch Wikipedia

  • BASICODE — was a computer project intended to create a unified standard for the BASIC programming language. BASIC was available on many popular home computers, but there were countless variants that were mostly incompatible with each other. The project was… …   Wikipedia

  • GOTO — o GO TO (ir a en inglés) es una instrucción muy común en los lenguajes de programación con el objetivo de controlar el flujo del programa. El efecto de su versión más simple es transferir sin condiciones la ejecución del programa a la etiqueta o… …   Wikipedia Español

  • MSX BASIC — Desarrollador(es) microsoft.com Información general Paradigma Imperativo …   Wikipedia Español

  • PICAXE — is the name of a UK sourced microcontroller system based on a range of Microchip PICs. There are 13 PICAXE variants of differing pin counts from 8 to 40 pins. Initially marketed for use in education and by electronics hobbyists, they are also… …   Wikipedia

  • Citinite — Founded 2006 Genre Electrofunk Location London / New York …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”