Bookshelf Home | Contents | Index | Search | PDF |
Siebel VB Language Reference > Siebel 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.
Syntax
On number GoTo label1[, label2, ... ]
Argument Description number 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
Returns
Not applicable
Usage
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
Bookshelf Home | Contents | Index | Search | PDF |
Siebel VB Language Reference Published: 18 June 2003 |