Export (0) Print
Expand All

Globals Module (Visual Basic) 

The Globals module contains script engine functions.

This module supports the Visual Basic language keywords and runtime library members that provide information about the runtime currently in use.

The following example uses the ScriptEngineMajorVersion property and related properties to return a string describing the current runtime information:

Function getRuntimeInfo() As String
    Dim runtime As String = ScriptEngine & " Version "
    runtime &= CStr(ScriptEngineMajorVersion) & "."
    runtime &= CStr(ScriptEngineMinorVersion) & "."
    runtime &= CStr(ScriptEngineBuildVersion)
    ' Return the current runtime information.
    Return runtime
End Function

Community Additions

ADD
Show:
© 2014 Microsoft