Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Scripting
 ScriptEngine Function
Collapse All/Expand All Collapse All
This page is specific to
.NET Framework 3.0

Other versions are also available for the following:
JScript
ScriptEngine Function (Windows Scripting - JScript)

Returns a string representing the scripting language in use.

ScriptEngine( )

The ScriptEngine function can return any of the following strings:

String

Description

JScript

Indicates that Microsoft JScript is the current scripting engine.

VBA

Indicates that Microsoft Visual Basic for Applications is the current scripting engine.

VBScript

Indicates that Microsoft Visual Basic Scripting Edition is the current scripting engine.

The following example illustrates the use of the ScriptEngine function:

function GetScriptEngineInfo(){
   var s;
   s = ""; // Build string with necessary info.
   s += ScriptEngine() + " Version ";
   s += ScriptEngineMajorVersion() + ".";
   s += ScriptEngineMinorVersion() + ".";
   s += ScriptEngineBuildVersion();
   return(s);
}
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker