Skip to main content
Table of Contents

TTMSFNCDataBinder.Connect Method

Creates a binding item using explicit parameters; a convenience alternative to configuring an TTMSFNCDataBinderItem manually.

API unit family: TMSFNCDataBinding Declaring type: TTMSFNCDataBinder

Syntax

FMX.TMSFNCDataBinding.hppPascalC++
function Connect(AObject: TObject; ADataSource: TDataSource; APropertyName: string; AFieldName: string = ''; AHTMLTemplate: string = ''; ASubPropertyNames: TTMSFNCDataBinderStringArray = nil; ASubFieldNames: TTMSFNCDataBinderStringArray = nil; ASubHTMLTemplates: TTMSFNCDataBinderStringArray = nil; ABindType: TTMSFNCDataBinderBindType = dbbtSingleValue): TTMSFNCDataBinderItem;
TTMSFNCDataBinderItem* __fastcall Connect(System::TObject* AObject, Data::Db::TDataSource* ADataSource, System::UnicodeString APropertyName, System::UnicodeString AFieldName = System::UnicodeString(), System::UnicodeString AHTMLTemplate = System::UnicodeString(), TTMSFNCDataBinderStringArray ASubPropertyNames = TTMSFNCDataBinderStringArray(), TTMSFNCDataBinderStringArray ASubFieldNames = TTMSFNCDataBinderStringArray(), TTMSFNCDataBinderStringArray ASubHTMLTemplates = TTMSFNCDataBinderStringArray(), TTMSFNCDataBinderBindType ABindType = (TTMSFNCDataBinderBindType)(0x0));

Parameters

Name Description
AObject Component to bind.
ADataSource Data source supplying the dataset.
APropertyName Name of the component property to bind.
AFieldName Dataset field name for single-value binding.
AHTMLTemplate HTML template for template-based binding.
ASubPropertyNames Sub-property names for list binding.
ASubFieldNames Sub-field names for list binding.
ASubHTMLTemplates Sub-templates for list HTML template binding.
ABindType Binding type controlling how dataset records are mapped. Default is dbbtSingleValue.

Returns

The new binding item added to the Items collection.