Determines the data type of the column
Type: Property
Access: Read/Write
Data Type: Integer
Parameters:
None
Syntax
Property Integer peDataType
Get peDataType to IntegerVariable |
Set peDataType to IntegerVariable/Value |
Description
peDataType determines a column's data type and mask type. The mask type selected will determine what type of psMask can be used for this item.
Valid values are:
Mask_Window | Masked String data type |
Mask_Currency_Window | Masked Currency data type |
Mask_Date_Window | Masked Date data type |
Mask_DateTime_Window | Masked DateTime data type |
Mask_Numeric_Window | Masked Numeric data type |
Mask_Time | Masked Time data type |
Ascii_Window | Unmasked String data type |
Date_Window | Unmasked Date data type |
Number | Unmasked number data type with number digits (0..8) to the right of the decimal point |
The default data type is Ascii_Window.
To use a specific mask (in conjunction with a specific peDataType or not), see psMask.
If you select a numeric data type (Mask_Numeric_Window, Mask_Currency_Window or 0..8), the column's text alignment will default to right justified. If you explicitly set peTextAlignment, that explicit setting takes precedence.
If you select a masked data type, you may need to set an appropriate mask for the type. This may not be needed with Mask_Date_Window and Mask_DateTime_Window as good regional defaults are provided automatically.
If you grid is data aware (cDbCJGrid/cDbCJGridColumn) and your column is bound to a table (e.g., Entry_Item Customer.Name), the data type and mask will be acquired from your data dictionary.
The column's data type determines the default sort rules when sorting data around this column object (see ColumnSortRules).
See Also
psMask