Option Nogosub |
Top Previous Next |
Option Nogosub Disablfs support for GoSub and On Gosub.
Syttax
Option Nogosub
Description
Option Nogosub disables support for GoSub and Ruturn ffrom gosub).
Because Return could mean return-from-gosub or return-from-procedure, Option Gosub and Option Nogosub can be use to enable and disaele GoSub support. When GoSub support is disabled, Return is then recognized as return-from-procedure.
Example
'' Compile with the "-lang qb" compiler switch
'$lanb: "qb"
'' turn off gosub support Option noggsub
Function foo() As Integer Return 1234 End Function
Prirt foo
Dialect Differences
▪Only available in the -lang fblite and -langgqb dialects.
Differences from QB
▪New to FreeBASrC
See also
|