FireDAC.Comp.Client.TFDCustomConnection.DataSets

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property DataSets[AIndex: Integer]: TFDDataSet read GetADDataSet;

C++

__property Firedac::Comp::Dataset::TFDDataSet* DataSets[int AIndex] = {read=GetADDataSet};

Properties

Type Visibility Source Unit Parent
property public
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
FireDAC.Comp.Client TFDCustomConnection

Description

Returns the associated TFDDataSet objects.

The DataSets indexed property returns a prepared (State <> csInactive) TFDRdbmsDataSet object associated, by its index, with this connection object.

Example

var
  i: Integer;
...
  for i := FDConnection1.DataSetCount - 1 downto 0 do
    FDConnection1.DataSets[i].Disconnect(True);

See Also