FireDAC.Comp.Client.TFDCustomConnection.CommandCount

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

property CommandCount: Integer read GetCommandCount;

C++

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

Propriétés

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


Description

Le nombre d'objets TFDCustomCommand associés.

La propriété CommandCount renvoie le nombre d'objets TFDCustomCommand (State <> csInactive) préparés, qui sont associés à cet objet connexion.

Exemple

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

Voir aussi