Table of Contents

TTMSFNCDataBinder.ConnectSingle Method

Creates a single-value binding from one dataset field to a component property.

API unit family: TMSFNCDataBinding Declaring type: TTMSFNCDataBinder

Syntax

function ConnectSingle(AObject: TObject; ADataSource: TDataSource; APropertyName: string; AFieldName: string): TTMSFNCDataBinderItem;

Parameters

Name Description
AObject Component whose property receives the field value.
ADataSource Data source supplying the dataset.
APropertyName Name of the component property to bind.
AFieldName Name of the dataset field whose value is mapped to the property.

Returns

The new binding item added to the Items collection.