Retrieves a variable value from a VarSet object.
ScriptContext.GetScriptState.GetSet.Get(VariableName String)
VariableName
|
Specifies the name of the value to retrieve from the VarSet object. |
Variant.
To retrieve the value of the
VARIABLE1
variable from the SAVEDSET1
VarSet object, enter:
Dim MYscriptstate Dim MYvarset Set MYscriptstate = ScriptContext.GetScriptState Set MYvarset = MYscriptstate.GetSet("SAVEDSET1") Dim MYvariable1 Set MYvariable1 = MYvarset.Get("VARIABLE1");
This example gets the SAVEDSET1
VarSet object from
the persistent store, and then gets the MYVARIABLE1
variable.