SftMask/OCX 6.5

SftMask.DataAccess Property

Softel vdm, Inc.

Defines the data-bound access mode.

Syntax       

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);

Delphi

Mode := object.DataAccess  : TOleEnum;

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);

Delphi

object.DataAccess := Mode  : TOleEnum;

object

A SftMask 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.

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.


Feedback / comments / error reports for this topic
© 2000, 2008 - Softel vdm, Inc. - www.softelvdm.com