Previous PageNext Page

8.3 VB Script Statements

Statement Description
Call
 
Transfers control to a Sub procedure or Function procedure.
 
Const
 
Declares constants for use in place of literal values.
 
Dim
 
Declares variables and allocates storage space.
 
Do...Loop
 
Repeats a block of statements while a condition is True or until a condition becomes True.
 
Erase
 
Reinitializes fixed-size arrays and deallocates dynamic array storage space.
 
Exit
 
Exits a block of Do...Loop, For...Next, Function, or Sub code.
 
For...Next
 
Repeats a group of statements a specified number of times.
 
For Each...Next
 
Repeats a group of statements for each element in an array or collection.
 
Function
 
Declares the name, arguments, and code that form the body of a Function procedure.
 
If...Then...Else
 
Conditionally executes a group of statements.
 
On Error
 
Enables error-handling.
 
Option Explicit
 
Used at script level to force explicit declaration of all variables in that script.
 
Private
 
Used at script level to declare private variables and allocate storage space.
 
Public
 
Used at script level to declare public variables and allocate storage space.
 
Randomize
 
Initializes the random-number generator.
 
ReDim
 
Used at procedure level to declare dynamic-array variables and allocate or reallocate storage space.
 
Rem
 
Used to include explanatory remarks and comments in a script.
 
Select Case
 
Executes one of several groups of statements based on the value of an expression.
 
Set
 
Assigns an object reference to a variable or property.
 
Sub
 
Declares the name, arguments, and code that form the body of a Sub procedure.
 
While...Wend
 
Executes a series of statements as long as a given condition is True.
 


Copyright © 2000 Chili!Soft

Previous PageTop Of PageNext Page