FireDAC.Comp.Client.TFDCustomConnection.CommandCount

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

Delphi

property CommandCount: Integer read GetCommandCount;

C++

__property int CommandCount = {read=GetCommandCount, nodefault};

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
property public
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
FireDAC.Comp.Client TFDCustomConnection


Beschreibung

Die Anzahl der zugehörigen TFDCustomCommand-Objekte.

Die Eigenschaft CommandCount gibt die Anzahl der vorbereiteten (State <> csInactive) TFDCustomCommand-Objekte zurück, die diesem Verbindungsobjekt zugeordnet sind.

Beispiel

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

Siehe auch