Siebel VB Language Reference > Quick Reference for Siebel VB Methods > Error Handling Methods >

Code Control Statements Quick Reference


The following table lists statements you can use to control the flow of logic in Siebel VB code.

Statement
Purpose
Reference

_

Treats the next line as a continuation of the current line.

Not applicable.

Command

Returns the command line specified when the MAIN sub runs.

Not applicable.

Do Loop

Controls repetitive actions.

Do Loop Statement

Exit

Causes the current procedure or loop structure to return.

Exit Statement

For Next

Loops a fixed number of times.

For Next Statement

Go To

Sends control to a statement.

Go To Statement

Go To Label

Branches to one of multiple labels depending on value.

Go To Label Statement

If...Then...
Else

Branches on a conditional value.

If Then Else Statement

Me

Gets the current object.

Me Statement

Rem or '

Treats the remainder of the line as a comment

Rem Statement

Select Case

Runs one of a series of statement blocks.

Select Case Statement

Stop

Stops code from running.

Stop Statement

While Wend

Controls repetitive actions.

While Wend Statement

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