FireDAC.Comp.Client.TFDCustomConnection.CommandCount

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property CommandCount: Integer read GetCommandCount;

C++

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

Properties

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

Description

The number of associated TFDCustomCommand objects.

The CommandCount property returns the number of prepared (State <> csInactive) TFDCustomCommand objects that are associated with this connection object.

Example

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

See Also

Retrieved from "https://docwiki.embarcadero.com/Libraries/Tokyo/e/index.php?title=FireDAC.Comp.Client.TFDCustomConnection.CommandCount&oldid=590270"