DATATYPE keyword

Applies To

Form components

Property defaults

edt_ (extended data type) variable values

Property: Data type

Description

Specifies the data type in WinStudio, either reflecting the type of data from the IDO or overriding the type from the IDO.

Syntax

DATATYPE( type )

Part Description
type Expression that evaluates to a string specifying a type of data, as described in Settings.

Settings

Setting Description
CHAR Character string.
DATE Date and time.
CURRENCY Money.
I1 One-byte integer.
I2 Two-byte integer.
I4 Four-byte integer.
R4 Four-byte floating point.
R8 Eight-byte floating point.
DECIMAL Fixed decimal.
BINARY BLOB (binary large object) data.
NUMSORTCHAR A numeric or alphanumeric string that is padded for the purpose of proper numeric sorting. See the method ExpandNumSortedChar for details on how data values are padded.

Remarks

WinStudio validates component values according to the type of data specified with the DATATYPE keyword. The type is normally equivalent to the type returned by the IDO. In some cases, you may wish to override the IDO type. For example, a character string type can be overridden with the DATE data type so that date or time validation is imposed on component values. You can reduce the precision of numeric values of a component by specifying a data type with lower precision than that of the type returned by the IDO.

Example

The following example is an edt_ variable value.

DATATYPE(CHAR)LENGTH(80)

相关主题