AnyDAC
ContentsIndexHome
PreviousUpNext
TADCustomConnection.Commands Property

Returns assocciated TADCustomCommand objects.

Group
Links

The Commands indexed property returns a prepared (State <> csInactive) TADCustomCommand object, assocciated with this connection object, by it index.

property Commands [AIndex: Integer]: TADCustomCommand;
var
  i: Integer;
...
  for i := ADConnection1.CommandCount - 1 downto 0 do
    ADConnection1.Commands[i].Disconnect(True);
What do you think about this topic? Send feedback!