The property DefinitionType
on the variable allows you to get
or set the definition types of a field when used on the output variable.
Note: You can also change the variable definition type to Discrete
or Free by using the property
Variable.DiscreteValues
as described in Setting Discrete Values for Variables.
An example follows, consisting of the following steps: