FireDAC.Comp.Client.TFDCustomConnection.Commands

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Commands[AIndex: Integer]: TFDCustomCommand read GetCommands;

C++

__property TFDCustomCommand* Commands[int AIndex] = {read=GetCommands};

Properties

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

Description

Returns the associated TFDCustomCommand objects.

The Commands indexed property returns a prepared (State <> csInactive) TFDCustomCommand object that is associated, by its index, with this connection object.

Example

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

See Also