|
Returns a string representing the scripting language in use.
ScriptEngine()
The ScriptEngine function can return any of the following strings:
String |
Description |
VBScript |
Indicates that Microsoft(r) Visual Basic(r) Scripting Edition is the current script engine. |
JScript |
Indicates that Microsoft JScript(tm) is the current script engine. |
VBA |
Indicates that Microsoft(r) Visual Basic(r) for Applications is the current script engine. |
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
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.