[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ON...GOTO                Branch to nth Item in Line List

 ON n GOTO {linenum | linelabel}, [,{linenum | linelabel}]...

    Causes QuickBASIC to branch to one of a list of line numbers and/or
    line labels.

           n    A numeric variable in the range 0 to 255. Upon execution
                of the ON...GOTO statement, QuickBASIC branches to the nth
                item in the list of line numbers/line labels that follows
                the keyword GOTO.

     linenum    A valid line number.

   linelabel    A valid line label.

   -----------------------------------------------------------------------

      Notes:    If n is a noninteger numeric value, QuickBASIC rounds n.

                If n is 0 or larger than the number of items in the line
                list, QuickBASIC continues with the next executable
                statement.

                If n is negative or larger than 255, an Illegal Function
                Call error occurs.

See Also: ON...GOSUB
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson