FireDAC.Comp.Client.TFDAdaptedDataSet.AttachTable

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

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

Properties

Type Visibility Source Unit Parent
procedure
function
public
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
FireDAC.Comp.Client TFDAdaptedDataSet

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