peDataType - cWebBaseDEO

Determines the data type of the control's psValue data

Type: Property (Web Property)

Access: Read/Write

Data Type: Integer

Parameters: None

Syntax
 { WebProperty=Client }
 Property Integer peDataType

Web Property Read Access: WebGet peDataType to IntegerVariable
Web Property Write Access: WebSet peDataType to IntegerVariable/Value

Read Access: Get peDataType to IntegerVariable
Write Access: Set peDataType to IntegerVariable/Value


Description

Set this property to one of the following.

Valid values are:

ConstantMeaning
typeASCIIASCII/text type
typeNumberNumeric types
typeDateDate type
typeDateTimeDateTime type
typeTimeTime type


To use a specific mask (in conjunction with a specific peDataType or not), see psMask.
If you use typeNumber and want to use decimal places, make sure you set piPrecision, since it defaults to 0.

Sample

Set peDataType to typeNumber
Set psMask to ##.##
Set piPrecision to 2


This property determines how data entry and text justification is set in the corresponding browser control. For example: if peDataType = typeNumber, then the control will not allow alphabetic characters to be entered and the value will be right justified by default.

See psMask to set a specific mask.

This property will show a default value of C_WebDefault in the Studio. This means that if the object has a data binding, then peDataType is determined by mapping to the data type of the data binding (Table.Column). If there is no data binding in the object, then C_WebDefault will map to typeASCII.


About Web Properties
Each web property maintains two values: The regular property value is set during object creation and should not be changed during the lifetime of that object. To access that value, use the standard property Get and Set syntax.
The web property value is the local value stored at each client. This is synchronized to the client's local value whenever a server call is being processed. To access the web property value, use the WebGet and WebSet syntax above instead of the standard Get and Set syntax.