|
WebGet peDataType to IntegerVariable |
WebSet peDataType to IntegerVariable/Value |
Get peDataType to IntegerVariable |
Set peDataType to IntegerVariable/Value |
Description
Set this property to one of the following.
Valid values are:
Constant | Meaning | |
typeASCII | ASCII/text type |
typeNumber | Numeric types |
typeDate | Date type |
typeDateTime | DateTime type |
typeTime | Time type |
psMask is used for display, and in edit mode if peDataType is set to typeASCII.
For data types other than typeASCII, psMask is not used while a control is in edit mode (has the focus). In edit mode, it uses the psTimeFormat which can be set in the cWebApp object.
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.