Lists all active commands for the connection component.
property Commands [Index: Integer]: TADOCommand;
__property TADOCommand Commands[int Index];
Use Commands to access active command components associated with a connection component. An active command component is one that is currently open.
Commands connected through an ADO connection object can be accessed in sequence through the Commands property in a loop based on CommandCount. For example, to execute all of the TADOCommand components connected through the TADOConnection component ADOConnection1:
var i: Integer; begin for i := 0 to (ADOConnection1.CommandCount – 1) do ADOConnection1.Commands[i].Execute; end;
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!