Siebel VB Language Reference > Quick Reference: VB Statements and Functions >

Control Flow in VB


The following statements control the logic flow.

Statement
Purpose
For More Information

Call

Transfers control to a subprogram

Call Statement

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

Goto

Sends control to a line label

GoTo Statement

If...Then...
Else

Branches on a conditional value

If...Then...Else Statement

Let

Assigns a value to a variable

Let (Assignment Statement)

Lset

Left-aligns one string or a user-defined variable within another

Lset Statement

On...Goto

Branches to one of several labels depending upon value

On...GoTo Statement

Rset

Right-aligns one string or a user-defined variable within another

Reset Statement

Select Case

Executes one of a series of statement blocks

Select Case Statement

Set

Sets an object variable to a value

Set Statement

Stop

Stops program execution

Stop Statement

While...Wend

Controls repetitive actions

While...Wend Statement

With

Executes a series of statements on a specified variable or object

With Statement

Siebel VB Language Reference Copyright © 2006, Oracle. All rights reserved.