| Description |
Language Element |
| Transfers control to a Sub or Function procedure. |
Call Statement |
| Declares the name of a class. |
Class Statement |
| Declares constants for use in place of literal values. |
Const Statement |
| Declares variables and allocates storage space. |
Dim Statement |
| Repeats a block of statements while a condition is True or until a condition becomes True. |
Do...Loop Statement |
| Reinitializes the elements of fixed-size arrays and deallocates dynamic-array storage space. |
Erase Statement |
| Executes one or more specified statements. |
Execute Statement |
| Executes one or more specified statements in the global namespace of a script. |
ExecuteGlobal Statement |
| Exits a block of Do...Loop, For...Next, Function, or Sub code. |
Exit Statement |
| Repeats a group of statements a specified number of times. |
For...Next Statement |
| Repeats a group of statements for each element in an array or collection. |
For Each...Next Statement |
| Declares the name, arguments, and code that form the body of a Function procedure. |
Function Statement |
| Conditionally executes a group of statements, depending on the value of an expression. |
If...Then...Else Statement |
| Enables error-handling. |
On Error Statement |
| Forces explicit declaration of all variables in a script. |
Option Explicit Statement |
| Declares private variables and allocates storage space. |
Private Statement |
| Declares the name, arguments, and code that form the body of a Property procedure that gets (returns) the value of a property. |
Property Get Statement |
| Declares the name, arguments, and code that form the body of a Property procedure that assigns the value of a property. |
Property Let Statement |
| Declares the name, arguments, and code that form the body of a Property procedure that sets a reference to an object. |
Property Set Statement |
| Declares public variables and allocates storage space. |
Public Statement |
| Initializes the random-number generator. |
Randomize Statement |
| Declares dynamic-array variables and allocates or reallocates storage space at procedure level. |
ReDim Statement |
| Includes explanatory remarks in a program. |
Rem Statement |
| Executes one of several groups of statements, depending on the value of an expression. |
Select Case Statement |
| Assigns an object reference to a variable or property. |
Set Statement |
| Declares the name, arguments, and code that form the body of a Sub procedure. |
Sub Statement |
| Executes a series of statements as long as a given condition is True. |
While...Wend Statement |
| Executes a series of statements on a single object. |
With Statement |