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. |
|
Exit |
Causes the current procedure or loop structure to return. |
|
For Next |
Loops a fixed number of times. |
|
Go To |
Sends control to a statement. |
|
Go To Label |
Branches to one of multiple labels depending on value. |
|
If...Then... Else |
Branches on a conditional value. |
|
Me |
Gets the current object. |
|
Rem or ’ |
Treats the remainder of the line as a comment |
|
Select Case |
Runs one of a series of statement blocks. |
|
Stop |
Stops code from running. |
|
While Wend |
Controls repetitive actions. |