Skip to content

Form_Datatype - DfBaseList

Defines a Form or Grid cell's data type and masking characteristics

Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None

Parameters

Parameter Type Description
iItem Integer

Syntax

Property Integer Form_Datatype
Access Type Syntax
Read Access: Get Form_Datatype to IntegerVariable
Write Access: Set Form_Datatype to IntegerVariable/Value

Description

Form_DataType determines an item's data type and mask type. The mask type selected will determine what type of Form_Mask value can be used for this item.

You must set Form_DataType in conjunction with Form_Mask.

Valid values are:

Col 1 Col 2
Mask_Window Masked String data type
Mask_Numeric_Window Masked Numeric data type
Mask_Date_Window Masked Date data type
Mask_DateTime_Window Masked DateTime data type
Mask_Time Masked Time data type
Mask_Currency_Window Masked Currency data type
Ascii_Window Unmasked String data type
Date_Window Unmasked Date data type
Number # of digits (0..8) to the right of the decimal point

Sample

Number means you should add the number of digits that the masked number should display, for example 2.

Set Form_DataType to 2

Time Mask

If Form_Mask is not set, it uses the regional long setting for display (hh:mm:ss). It always uses the regional setting for input. Does not support milliseconds.

Combo Forms

Masking is not supported in Combo forms.

See Also

Form_Mask | Currency_Mask | Numeric_Mask | Value | DF_Field_Type