VBScript » Statements » Execute

Syntax:
Execute(String)

The Execute statement takes a single string argument, interprets it as a VBScript statement or sequence of statements, and executes these statements in the current context. No value is returned. If you wish to evaluate an expression (which returns a value) use the Eval function instead.

To pass multiple statements to the Execute function you should use colons or line-breaks as separators.

Unlike the Eval function, Execute interprets all "=" operators as assignments rather than comparisons.

Examples

Code:
<%
Execute("Call MySub 4, strArg2")
%>
Language(s): VBScript

See Also: