Version

TreatAsType Property

Gets or sets a Type to use for conversion purposes when the _CALCMANAGER_ interprets the value from the Control.
Syntax
'Declaration
 
Public Property TreatAsType As Type
public Type TreatAsType {get; set;}
Remarks

TreatAsType is useful if you are using values in a calculation that are not necessarily in the native type for the formula. For example, if a TextBox control's Text property is being used to enter a numeric value, the _CALCMANAGER_ by default converts the contents of the TextBox to a Double using the Invariant Culture. This may not always be the desired effect. Setting TreatAsType to double in this example would convert the Text of the TextBox to a Double using the Invariant Culture before passing the value on to the _CALCMANAGER_.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also