Skip to content

Data Types

XMod Pro data-bound controls enable you to specify the type of data the control will accept. Some controls may limit you to a specific type of data (for instance, a checkbox control might only allow boolean values). The list of valid data types is below:

  • Boolean
  • DateTime
  • Decimal
  • Double
  • Byte
  • Int16
  • Int32
  • Int64
  • Single
  • String

SQL Server Data Type to XMod Pro Data Type Conversion

To make the process of linking your fields up with XMod Pro, we've created a table listing the SQL Server data type and its XMod Pro equivalent, if available. While currently, XMod Pro is designed for SQL Server, it does not support every field type. The goal is to keep XMod Pro loosely coupled so that other databases and data sources can be added in the future. Also, keep in mind that while a certain data type may have an XMod Pro equivalent, you should ensure that the values accepted from your users do not exceed the limitations of the data type. For instance, if you choose the NChar datatype in SQL Server, you should use the String XMod Pro data type. However, you need to ensure the text entered falls within the limits of the NChar field (4,000 characters for SQL Server 2005). We have noted limitations for some data types.

SQL Server Data TypeXMod Pro Data Type
BigIntInt64
BinaryNot Supported
BitBoolean
CharString (subject to Char size limits)
DateDate (supported as of XMod Pro 3.1)
DateTimeDateTime
DateTime2DateTime (supported as of XMod Pro 3.1)
DateTimeOffsetNot Supported
DecimalDecimal
FloatDouble
ImageNot Supported
IntInt32
MoneyDecimal. Do not include currency symbols (i.e $) in value.
NCharString (subject to NChar size limits)
NTextString
NVarCharString (subject to NVarChar size limits)
RealSingle
SmallDateTimeDateTime (subject to SmallDateTime size limits)
SmallIntInt16
SmallMoneyDecimal (subject to SmallMoney size limits). Do not include currency symbols (i.e $) in value.
StructuredNot Supported
TextString
TimeUse SQL DateTime data type instead)
TimestampNot Supported
TinyIntByte (supported as of XMod Pro 3.1)
UdtNot Supported
UniqueIdentifierString (supported as of XMod Pro 3.1) Ensure your data is formatted accordingly
VarBinaryNot Supported
VarCharString (subject to VarChar size limits)
VariantNot Supported
XmlString (supported as of XMod Pro 3.1)