Put Method

Writes a variable value to a VarSet object.

Syntax

ScriptContext.GetScriptState.GetSet.Put VariableName String, Value Variant;

Parameters

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.

Return Type

None.

Example

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