Get Method

Retrieves a variable value from a VarSet object.

Syntax

ScriptContext.GetScriptState.GetSet.Get(VariableName String)

Parameters

VariableName Specifies the name of the value to retrieve from the VarSet object.

Return Type

Variant.

Example

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.