Compartir a través de


ScriptEngine Function

 

Returns a string representing the scripting language in use.

Syntax

ScriptEngine

Return Value

The ScriptEngine function can return any of the following strings:

String

Description

VBScript

Indicates that Microsoft Visual Basic Scripting Edition is the current scripting engine.

JScript

Indicates that Microsoft JScript is the current scripting engine.

VBA

Indicates that Microsoft Visual Basic for Applications is the current scripting engine.

Remarks

The following example uses the ScriptEngine function to return a string describing the scripting language in use:

Function GetScriptEngineInfo
   Dim s
   s = ""   ' Build string with necessary info.
   s = ScriptEngine & " Version "
   s = s & ScriptEngineMajorVersion & "."
   s = s & ScriptEngineMinorVersion & "."
   s = s & ScriptEngineBuildVersion 
   GetScriptEngineInfo = s   ' Return the results.
End Function

Requirements

Version 2

See Also

ScriptEngineBuildVersion Function
ScriptEngineMajorVersion Function
ScriptEngineMinorVersion Function