Name
ScriptEngineMinorVersion Function
Syntax
ScriptEngineMinorVersion( )
Return Value
A Variant of subtype 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 & Gotchas
The function is also implemented in the JScript scripting 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.
Get VBScript in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.