18.01.2013 Views

VBScript Reference Manual for InduSoft Web Studio

VBScript Reference Manual for InduSoft Web Studio

VBScript Reference Manual for InduSoft Web Studio

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>VBScript</strong> <strong>Reference</strong> <strong>Manual</strong> <strong>InduSoft</strong> <strong>Web</strong> <strong>Studio</strong><br />

ScriptEngine<br />

Description Returns a string representing the scripting language in use<br />

Usage ScriptEngine<br />

Arguments none<br />

Return Value A String. The ScriptEngine function can return the following strings:<br />

<strong>VBScript</strong> Indicates that Microsoft Visual Basic Scripting Edition is the current scripting<br />

engine<br />

Remarks Other 3 rd party ActiveX scripting engines can also be returned if they are installed.<br />

See Also ScriptEngineBuildVersion, ScriptEngineMajorVersion, ScriptEngineMinorVersion<br />

Example The following example uses the ScriptEngine function to return a string describing the scripting<br />

language in use:<br />

Function GetScriptEngineInfo<br />

Dim s<br />

s = "" ' Build string with necessary info.<br />

s = ScriptEngine & " Version "<br />

s = s & ScriptEngineMajorVersion & "."<br />

s = s & ScriptEngineMinorVersion & "."<br />

s = s & ScriptEngineBuildVersion<br />

GetScriptEngineInfo = s ' Return the results.<br />

End Function<br />

ScriptEngineBuildVersion<br />

Description Returns the build version number of the scripting engine in use.<br />

Usage ScriptEngineBuildVersion<br />

Arguments none<br />

Remarks The return value corresponds directly to the version in<strong>for</strong>mation contained in the DLL <strong>for</strong> the<br />

scripting language in use.<br />

See Also ScriptEngine, ScriptEngineMajorVersion, ScriptEngineMinorVersion<br />

Example The following example uses the ScriptEngineBuildVersion function to return the build version<br />

number of the scripting engine::<br />

Function GetScriptEngineInfo<br />

Dim s<br />

s = "" ' Build string with necessary info.<br />

s = ScriptEngine & " Version "<br />

s = s & ScriptEngineMajorVersion & "."<br />

s = s & ScriptEngineMinorVersion & "."<br />

s = s & ScriptEngineBuildVersion<br />

GetScriptEngineInfo = s ' Return the results.<br />

End Function<br />

156 <strong>InduSoft</strong>, Ltd.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!