FireDAC.Comp.Client.TFDCustomConnection.CommandCount

De RAD Studio API Documentation
Révision datée du 19 novembre 2013 à 14:22 par Diala (discussion | contributions) (1 version : LOC-12755)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
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