Data Type: String expression
A string expression containing one or more statements for execution.
Executes one or more statements.
statement must evaluate to a
string that contains one or more executable statements. An
executable statement is any call to a user-defined procedure or
function, or any intrinsic VBScript command.
You can put multiple statements in the expression; separate them with colons.
You can also separate the arguments with embedded line breaks.
statement includes an equal
sign, it is interpreted as an assignment rather than an
evaluation. For example,
3 assigns the value 3 to the variable x, rather than
comparing the value of the variable x with 3.
In VBScript, a program fragment such as
x=3 can be interpreted as both an
assignment statement (assigning the value 3 to the variable x)
or as a comparison expression (for example
If x = 3 Then...) The
ExecuteGlobal statements always treat
strings of the form
a = b as
assignment statements. Use Eval to interpret strings of this
form as expressions.
The following is a corrected version of an example appearing
in online help that appears to do nothing. In this case, the
Execute statement is used to
execute a procedure named
Proc2, and the entire source code for the
procedure is also stored to the string
that is passed to the
dim S S = "Proc2 : " S = S & "Sub Proc2 : " S = S & "Dim x : " ...