Statements
- Call
- Transfers control to a Sub or Function
procedure.
- Class
- Declares the name of a class, as well as a
definition of the variables, properties, and methods that comprise
the class.
- 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 the elements of fixed-size arrays and
deallocates dynamic-array storage space.
- Execute
- Executes one or more specified statements.
- ExecuteGlobal
- Executes one or more specified statements in the
global namespace of a script.
- Exit
- Exits a block of Do…Loop, For…Next, Function, or Sub
code.
- For Each…Next
- Repeats a group of statements for each element in an
array or collection.
- For…Next
- Repeats a group of statements a specified number of
times.
- Function
- Declares the name, arguments, and code that form the
body of a Function procedure.
- If…Then…Else
- Conditionally executes a group of statements,
depending on the value of an expression.
- Option Explicit
- Forces explicit declaration of all variables in a
script.
- Private
- Declares private variables and allocates storage
space. Declares, in a Class block, a private variable.
- Property Get
- Declares, in a Class block, the name, arguments, and
code that form the body of a Property procedure that gets (returns)
the value of a property.
- Property Let
- Declares, in a Class block, the name, arguments, and
code that form the body of a Property procedure that assigns (sets)
the value of a property.
- Property Set
- Declares, in a Class block, the name, arguments, and
code that form the body of a Property procedure that sets a
reference to an object.
- Public
- Declares public variables and allocates storage
space. Declares, in a Class block, a private variable.
- Ramdomize
- Initializes the random-number generator.
- ReDim
- Declares dynamic-array variables, and allocates or
reallocates storage space at procedure level.
- Rem
- Includes explanatory remarks in a program.
- Select
- Executes one of several groups of statements,
depending on the value of an expression.
- Set
- Assigns an object reference to a variable or
property, or associates a procedure reference with an event.
- Stop
- Suspends execution.
- Sub
- Declares the name, arguments, and code that form the
body of a Sub procedure.
- While
- Executes a series of statements as long as a given
condition is True.
- With
- Executes a series of statements on a single
object.