Name
ScriptEngineMinorVersion Function
Syntax
ScriptEngineMinorVersion( )
Return Value
A Long.
Description
Indicates the minor version (the number to the right of the decimal point) of the scripting language engine currently in use.
Programming Tips and Gotchas
The function is also implemented in the JScript script engine.
If your script requires some functionality available in a baseline minor version, you ordinarily would want to make sure that the script is running on that version or a later version. Test for a minor version with a code fragment like:
lMajor = ScriptingEngineMajorVersion lMinor = ScriptingEngineMinorVersion If (lMajor = 5 And lMinor >= 1) Or (lMajor > 5) Then
You should not test for equality, and you should never test for a minor version alone, without considering the major version.
VBA/VBScript Differences
This function is not supported in VBA.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access