Value Property

The value of a variable.

Syntax

Property Value As Object

Parameters

None

Examples

IronPython

#Get variable value
myDouble = Host.ScriptData.Variable[varName].Value

#Set variable value
Host.ScriptData.Variable[varName].Value += 1.0


C#

//Get variable value
double oldVal = (double) ScriptData.get_Variable(varName).Value;


//Set variable value

ScriptData.Variables[varName].Value += 1.0;

Remarks