Global Variables

<< Click to Display Table of Contents >>

 

Global Variables

To store any temporary value during the execution of this Driver, users can declare global variables in a script, according to the next example.

' Declares a global variable
Dim gDict
 
Sub OnStart()
  'Initializes global variables
  Set gDict = CreateObject("Scripting.Dictionary")
  gDict.Add "BR", "Portuguese"
  gDict.Add "US", "English"
End Sub
 
Sub OnStop()
  'Clears global variables
  Set gDict = Nothing
End Sub

Was this page useful?