Siebel VB Language Reference > Methods Reference for Siebel VB > Code Control Statements >

Go To Label Statement


The Go To Label statement is a control structure that directs flow to a label in the current procedure according to the value of a numeric expression. It does not return a value.

If the value in the number argument evaluates to:

  • Zero or to a number that is greater than the number of labels that occur after the Go To Label statement, then Siebel VB runs the code at the next statement.
  • Less than 0 or greater than 255, then Siebel VB creates the following error:

    Illegal function call

Format

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

The following table describes the arguments that you can use with this method.

Argument
Description

number

Any numeric expression that evaluates to a positive number.

label1, label2, ...

A label in the current procedure. Siebel VB directs flow to this procedure.

Siebel VB Language Reference Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.