FBWiki : KeyPgGoto

FBWiki :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register

GOTO


Control flow statement to jump to another part of the program

Syntax:
Goto label

Description:
Jumps code execution to a line label.

For better source code readability, overuse of Goto should be avoided in favor of more modern structures such as Do...Loop, For...Next, Sub, and Function.

Examples:
    Goto there

backagain:
    End

there:
    Print "Welcome!"
    Goto backagain


'' Compile with -lang qb or fblite

'$lang: "qb"

1 Goto 3
2 End
3 Print "Welcome!"
4 Goto 2


Dialect Differences:

Differences from QB:

See also:

Back to Control Flow

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.0



sf.net phatcode