|
|
|
SftMask.DataAccess Property |
Defines the data-bound access mode.
Syntax
VB.NET |
Mode = object.DataAccess As SftMaskAccessConstants |
||
VB |
Mode = object.DataAccess As SftMaskAccessConstants |
||
C#.NET |
SftMaskAccessConstants Mode = object.DataAccess; |
||
VC++ |
enum SftMaskAccessConstants Mode = object->DataAccess;
|
||
C |
HRESULT object->get_DataAccess(enum SftMaskAccessConstants* Mode); |
||
Delphi |
Mode := object.DataAccess : TOleEnum; |
||
VB.NET |
object.DataAccess = Mode As SftMaskAccessConstants |
||
VB |
object.DataAccess = Mode As SftMaskAccessConstants |
||
C#.NET |
SftMaskAccessConstants object.DataAccess = Mode; |
||
VC++ |
enum SftMaskAccessConstants object->DataAccess = Mode;
|
||
C |
HRESULT object->put_DataAccess(enum SftMaskAccessConstants Mode); |
||
Delphi |
object.DataAccess := Mode : TOleEnum; |
object
A SftMask object.
Mode
Defines the data-bound access mode.
Mode |
Value |
Description |
0 |
The value is extracted from the data source as a string and is assigned to the control as a string (using the Text property, based on the ClipMode property settings). |
|
1 |
The value is extracted from the data source as a date/time value and is assigned to the control as a date/time value (using the Contents.DateTime property). |
|
2 |
The value is extracted from the data source as a string and is assigned to the control as a string, including all literal characters. |
|
3 |
The value is extracted from the data source as a string and is assigned to the control as a string, excluding all literal characters. |
Comments
The DataAccess property defines the data-bound access mode.
The edit control uses a string representation (i.e. text) for all its contents. In the case of a date/time value available from a data source, the control can use the date/time value directly, avoiding any locale related problems. The DataAccess property should be set to accessSftMaskDateTime to use date/time values directly. Any other data types will always be converted to a string.
Occasionally it may be desirable to treat date/time values as strings. In this case the DataAccess property should be set to accessSftMaskText.
The DataAccess property has no effect if the control is used as a simple edit control (without Mask). In this case all data types are converted to a string.