SftMask/OCX 6.5

SftMask.DataSource Property

Softel vdm, Inc.

Defines the data source through which the control is bound to a database.

Syntax       

Get

VB.NET

Source = object.DataSource  As DataSource

VB

Set Source = object.DataSource  As DataSource

C#.NET

DataSource Source = object.DataSource;

VC++

DataSource* Source = object->DataSource;
DataSource* Source = object->GetDataSource();

C

HRESULT object->get_DataSource(DataSource** Source);

Delphi

Source := object.DataSource  : DataSource;

PutRef

VB.NET

object.DataSource = Source  As DataSource

VB

Set object.DataSource = Source  As DataSource

C#.NET

DataSource object.DataSource = Source;

VC++

DataSource* object->DataSource = Source;
void object->PutRefDataSource(DataSource* Source);

C

HRESULT object->putref_DataSource(DataSource* Source);

Delphi

object.DataSource := Source  : DataSource;

object

A SftMask object.

Source

Defines the data source through which the control is bound to a database. ADO Recordset objects are supported.

Comments

The DataSource property defines the data source through which the control is bound to a database.

When used as a bound control, SftMask can provide access to specific data in your database. SftMask manages a single field in a recordset and displays the value of a specific field in the current record. The DataSource property of the control defines the data source. The DataField property defines the field name in the recordset object created by the data source. Together, these properties define what data appears in the control.

Note: ADO Recordset objects are supported as valid data sources.  Visual Basic’s Data control and RemoteData control cannot be used as data sources.


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