Writes a variable value to a VarSet object.
ScriptContext.GetScriptState.GetSet.Put VariableName String, Value Variant;
VariableName
|
Specifies the name of the variable value to write to the VarSet object. |
Value
|
Specifies the variable value to write to the VarSet object. |
None.
To write the value of the
VARIABLE1
variable with the name
VARIABLE1
to the SAVEDSET1
VarSet object,
enter:
Dim MYscriptstate Dim MYvarset Set MYscriptstate = ScriptContext.GetScriptState Set MYvarset = MYscriptstate.GetSet("SAVEDSET1") Dim variable1 Set variable1 = "The value of variable 1" MYvarset.Put "VARIABLE1", variable1 MYscriptstate.SaveSet "SAVEDSET1", MYvarset