Name Property

The name of a variable.

Syntax

Property Name As String

Parameters

None

Examples

IronPython

#Get variable name
myName = Host.ScriptData.Variable[varName].Name

#Set variable name
Host.ScriptData.Variable[varName].Name = "myNumber" #See remarks


C#

//Get variable name
string myName =ScriptData.Variables[varName].Name;


//Set variable name

ScriptData.Variables[varName].Name = "myNumber";  //See remarks

Remarks

When changing a variables name the key does not change.