SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Defines the data-bound access mode.
Get
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; enum SftMaskAccessConstants Mode = object->GetDataAccess(); |
C | HRESULT object->get_DataAccess(enum SftMaskAccessConstants* Mode); |
Put
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; void object->PutDataAccess(enum SftMaskAccessConstants Mode); |
C | HRESULT object->put_DataAccess(enum SftMaskAccessConstants Mode); |
object
Mode
Defines the data-bound access mode.
Mode | Value | Description |
---|---|---|
accessSftMaskText | 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). |
accessSftMaskDateTime | 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). |
accessSftMaskTextWithLiterals | 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. |
accessSftMaskTextNoLiterals | 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. |
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.
See Also SftMask Object | Object Hierarchy