Name
ScriptEngineMinorVersion Property
Class
Microsoft.VisualBasic.Globals
Syntax
ScriptEngineMinorVersion
Return Value
An Integer containing the minor version number
Description
Indicates the minor version (the number to the right of the decimal point) of the programming language currently in use
Programming Tips and Gotchas
This property is implemented as a function in the JScript scripting engine.
If your script requires some functionality available in a baseline minor version, ordinarily you 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:
Dim iMajor As Integer = ScriptEngineMajorVersion( ) Dim iMinor As Integer = ScriptEngineMinorVersion( ) If (lMajor =
x
And lMinor >=y
) Or (lMajor >x
) Then ...
VB.NET/VB 6 Differences
This property is new to VB.NET.
Get VB.NET Language in a Nutshell, Second Edition 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.