Siebel VB Language Reference > VB Language Reference >

On...GoTo Statement

This standard VB programming control structure causes execution to branch to a label in the current procedure based on the value of a numeric expression.


On number GoTo label1[, label2, ... ]



Any numeric expression that evaluates to a positive number

label1, label2, ...

A label in the current procedure to branch to if number evaluates to 1, 2, and so on


Not applicable


If number evaluates to 0 or to a number greater than the number of labels following GoTo, the program continues at the next statement. If number evaluates to a number less than 0 or greater than 255, an "Illegal function call" error is issued.

See Also

GoTo Statement
Select Case Statement

Siebel VB Language Reference