Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ScriptEngineMajorVersion Function (JScript 10.0)

Returns the major version number of the scripting engine in use.

function ScriptEngineMajorVersion() : int

The return value corresponds directly to the version information contained in the dynamic-link library (DLL) for the scripting language in use.

The following example illustrates the use of the ScriptEngineMajorVersion function:

function GetScriptEngineInfo(){
   var s;
   s = ""; // Build string with necessary info.
   s += ScriptEngine() + " Version ";
   s += ScriptEngineMajorVersion() + ".";
   s += ScriptEngineMinorVersion() + ".";
   s += ScriptEngineBuildVersion();
   return(s);
}
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.