ÄúµÄλÖãºÑ°ÃÎÍøÊ×Ò³£¾±à³ÌÀÖÔ°£¾VBScript£¾VBScript


objects constants operators statements functions properties methods







STATEMENT:  Execute

Execute (String)

VBScript 5.0

The Execute function 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.

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