Hide

SftMask/OCX 7.0 - ActiveX Masked Edit Control

Display
Print

DataAccess Property, SftMask Object

Defines the data-bound access mode.

Syntax

Get

VB.NETMode = object.DataAccess As SftMaskAccessConstants
VBMode = object.DataAccess As SftMaskAccessConstants
C#.NETSftMaskAccessConstants Mode = object.DataAccess;
VC++enum SftMaskAccessConstants Mode = object->DataAccess;
enum SftMaskAccessConstants Mode = object->GetDataAccess();
CHRESULT object->get_DataAccess(enum SftMaskAccessConstants* Mode);

Put

VB.NETobject.DataAccess = Mode As SftMaskAccessConstants
VBobject.DataAccess = Mode As SftMaskAccessConstants
C#.NETSftMaskAccessConstants object.DataAccess = Mode;
VC++enum SftMaskAccessConstants object->DataAccess = Mode;
void object->PutDataAccess(enum SftMaskAccessConstants Mode);
CHRESULT object->put_DataAccess(enum SftMaskAccessConstants Mode);

object

A SftMask object.

Mode

Defines the data-bound access mode.

ModeValueDescription
accessSftMaskText0The 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).
accessSftMaskDateTime1The 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).
accessSftMaskTextWithLiterals2The value is extracted from the data source as a string and is assigned to the control as a string, including all literal characters.
accessSftMaskTextNoLiterals3The 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.

See Also SftMask Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.