ScriptEngine Property


ScriptEngine Property

Class

Microsoft.VisualBasic.Globals

Syntax

     Dim result As String = Globals.ScriptEngine 

Description

The ScriptEngine property returns the name of the script engine or programming language currently in use. In Visual Basic, this property always returns "VB."

Usage at a Glance

  • The ScriptEngine is a read-only property.

  • A number of scripting engines support a ScriptEngine property, which allows you to determine the programming language used for a particular block of code. The following table lists some commonly supported values:

    Language

    Property value

    Microsoft Jscript

    JScript

    VB for .NET

    VB

    VBScript

    VBScript


Version Differences

The ScriptEngine property is new to .NET and is not supported in VB 6.

See Also

ScriptEngineBuildVersion Property, ScriptEngineMajorVersion Property, ScriptEngineMinorVersion Property




Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net