FireDAC.Comp.Client.TFDAdaptedDataSet.AttachTable

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
Unit: FireDAC.Comp.Client
Parent: TFDAdaptedDataSet

Delphi

procedure AttachTable(ATable: TFDDatSTable; AView: TFDDatSView); override;

C++

virtual void __fastcall AttachTable(Firedac::Dats::TFDDatSTable* ATable, Firedac::Dats::TFDDatSView* AView);

Description

Use the AttachTable method to attach the dataset to an existing DatS table and/or view.

The AttachTable method attaches the dataset to an existing DatS table and/or view.

After attaching, the application may call the Open method to open and browse the dataset. This method is primary useful for TFDMemTable. At least one of the parameters must not be nil.

Example

ADMemTable1.AttachTable(oTab, nil) ;
ADMemTable1.Open;

See Also