ScriptEngine Function (Visual Studio - JScript)

Returns a string representing the scripting language in use.

function ScriptEngine() : String

Remarks

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.

Example

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);
}

Requirements

Version 2

See Also

Reference

ScriptEngineBuildVersion Function (Visual Studio - JScript)

ScriptEngineMajorVersion Function (Visual Studio - JScript)

ScriptEngineMinorVersion Function (Visual Studio - JScript)