FireDAC.Comp.Client.TFDCustomConnection.DataSets

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: property
Visibility: public
Source:
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
Unit: FireDAC.Comp.Client
Parent: TFDCustomConnection

Delphi

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

C++

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

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