| Description |
language Elements |
| Handing control over to a Sub or Function procedure. |
Call statement |
| Declares the name of a class. |
Class statement |
| Declares constants that are used to replace literal values. |
Const statement |
| Declare variables and allocate storage space. |
Dim statement |
| Repeats a statement block when a condition is true or before a condition becomes true . |
Do ... Loop statement |
| Initializes the elements of the fixed-size array and frees the storage space for the dynamic array. |
Erase statement |
| Executes one or more specified statements. |
Execute statement |
| Executes one or more statements in the global namespace of a script. |
Executeglobal statement |
| Quit do ... Loop, for... Next,Function , or Sub code block. |
Exit statement |
| Executes a set of statements repeatedly up to a specified number of times. |
For ..... Next statement |
| Repeats a set of statements for each element in an array or collection. |
For Each ... Next statement |
| Declares the name, parameters, and code of a Function procedure. |
Function statement |
| Conditionally executes a set of statements based on the value of an expression. |
If ... Then ... Else statement |
| Activates error handling. |
On Error statement |
| Forces an explicit declaration of the variables used in a script. |
Option Explicit Statement |
| Declare private variables and allocate storage space. |
Private statement |
| Declares the name, parameters, and code of a Property procedure that obtains (returns) the value of an attribute. |
Property Get Statement |
| Declares the name, parameter, and code of a Property procedure that specifies the value of an attribute. |
Property Let statement |
| Declares the name, parameters, and code of a property procedure that sets a reference to an object. |
Property Set Statement |
| Declare public variables and allocate storage space. |
Public statement |
| Initializes a random number generator. |
Randomize statement |
| Declare a dynamic array variable and allocate or reallocate storage space at the procedure level. |
ReDim statement |
| Include explanatory notes in the program. |
Rem statement |
| Executes one or more sets 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, parameters, and code of a Sub procedure. |
Sub statement |
| Executes a series of statements when the given condition is True ... |
While ... Wend Statement |
| Executes a series of statements on a single object. |
With statement |