O'Reilly logo

VB.NET Language in a Nutshell, Second Edition by Steven Roman PhD, Paul Lomax, Ron Petrusha

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

ScriptEngineMajorVersion Property

Class

Microsoft.VisualBasic.Globals

Syntax

ScriptEngineMajorVersion

Return Value

An Integer containing the major version number

Description

Indicates the major version (1, 2, etc.) of the programming language currently in use

Rules at a Glance

The initial version of VB.NET returns “7” as its major version number.

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 version, ordinarily you want to make sure that the script is running on that version or a later version. You do not want to test for equality, since that may leave your code unable to run on later versions of the language engine.

VB.NET/VB 6 Differences

This property is new to VB.NET.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required