Revision history for KeyPgOngosub


Revision [24283]

Last edited on 2020-08-13 03:29:42 by fxm [splitted Return-from-gosub and Return-from-proc]
Additions:
This statement behaves exactly like ##[[KeyPgGosub|Gosub]]## and execution may return to the statement following the ##**On...Gosub**## using ##[[KeyPgReturnGosub|Return]]##.
- ##[[KeyPgReturnGosub|Return (from Gosub)]]##
Deletions:
This statement behaves exactly like ##[[KeyPgGosub|Gosub]]## and execution may return to the statement following the ##**On...Gosub**## using ##[[KeyPgReturn|Return]]##.
- ##[[KeyPgReturn|Return]]##


Revision [21924]

Edited on 2017-09-29 12:51:41 by fxm [Added (in ยง"See also") a link to the "Labels" page]
Additions:
- ##[[ProPgLabels|Labels]]##


Revision [20995]

Edited on 2016-03-13 04:59:44 by fxm [Formatting]

No Differences

Revision [20345]

Edited on 2016-02-10 16:03:28 by DkLwikki [Update link format]
Additions:
This statement behaves exactly like ##[[KeyPgGosub|Gosub]]## and execution may return to the statement following the ##**On...Gosub**## using ##[[KeyPgReturn|Return]]##.
It is recommended that the structured ##[[KeyPgSelectcase|Select Case]]## conditional statement be used instead of ##**On...Gosub**##.
- Only available in the //[[CompilerOptlang|-lang qb]]// and //[[CompilerOptlang|-lang fblite]]// dialects.
- ##**On Gosub**## support is disabled by default in the //[[CompilerOptlang|-lang fblite]]// unless the ##[[KeyPgOptiongosub|Option Gosub]]## statement is used.
- ##[[KeyPgSelectcase|Select Case]]##
- ##[[KeyPgOngoto|On...Goto]]##
- ##[[KeyPgGosub|Gosub]]##
- ##[[KeyPgReturn|Return]]##
- ##[[KeyPgOptiongosub|Option Gosub]]##
Deletions:
This statement behaves exactly like ##[[KeyPgGosub Gosub]]## and execution may return to the statement following the ##**On...Gosub**## using ##[[KeyPgReturn Return]]##.
It is recommended that the structured ##[[KeyPgSelectcase Select Case]]## conditional statement be used instead of ##**On...Gosub**##.
- Only available in the //[[CompilerOptlang -lang qb]]// and //[[CompilerOptlang -lang fblite]]// dialects.
- ##**On Gosub**## support is disabled by default in the //[[CompilerOptlang -lang fblite]]// unless the ##[[KeyPgOptiongosub Option Gosub]]## statement is used.
- ##[[KeyPgSelectcase Select Case]]##
- ##[[KeyPgOngoto On...Goto]]##
- ##[[KeyPgGosub Gosub]]##
- ##[[KeyPgReturn Return]]##
- ##[[KeyPgOptiongosub Option Gosub]]##


Revision [13591]

Edited on 2008-07-21 15:45:18 by JeffMarshall [added #lang or $lang to example]
Additions:
'$lang: "qb"
On choice GoSub labela, labelb, labelc
Print "Good bye."
End
Print "choice a"
Return
Print "choice b"
Return
Print "choice c"
Return
Deletions:
on choice gosub labela, labelb, labelc
print "Good bye."
end
print "choice a"
return
print "choice b"
return
print "choice c"
return


Revision [13337]

The oldest known version of this page was created on 2008-05-08 07:43:22 by JeffMarshall [added #lang or $lang to example]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode