Skip to main content
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

FMX.TMSFNCDataBinding.hppPascalC++
function ConnectSingle(AObject: TObject; ADataSource: TDataSource; APropertyName: string; AFieldName: string): TTMSFNCDataBinderItem;
TTMSFNCDataBinderItem* __fastcall ConnectSingle(System::TObject* AObject, Data::Db::TDataSource* ADataSource, System::UnicodeString APropertyName, System::UnicodeString AFieldName);

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.