Type Property

The data type of a variable.

Syntax

Property Type As VSVariableDataType

Parameters

None

Examples

IronPython

#Get variable type
myType = Host.ScriptData.Variable[varName].Type

#Set variable type
Host.ScriptData.Variable[varName].Type = myType


C#

//Get variable type
VSVariableDataType myType =  ScriptData.Variables[varName].Type;


//Set variable type;

ScriptData.Variables[varName].Type = myType

Remarks