eval Method (Windows Scripting - JScript)
Evaluates JScript code and executes it.
Required. A String value that contains valid JScript code.
The eval method enables dynamic execution of JScript source code.
The codeString string is parsed by the JScript parser and executed.
The code passed to the eval method is executed in the same context as the call to the eval method.
The following code initializes the variable myDate to a test date.