FireDAC.Comp.Client.TFDCommand.Active
Delphi
property Active;
C++
__property Active = {default=0};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | FireDAC.Comp.Client.pas FireDAC.Comp.Client.hpp |
FireDAC.Comp.Client | TFDCommand |
Description
Gets or sets the active status of the command.
FireDAC.Comp.Client.TFDCommand.Active inherits from FireDAC.Comp.Client.TFDCustomCommand.Active. All content below this line refers to FireDAC.Comp.Client.TFDCustomCommand.Active.
Gets or sets the active status of the command.
Set Active to True to execute the SQL command and return the cursor. After that, the State equals csOpen
and you can fetch rows from the current cursor using the Fetch method. Setting Active to True, calls the Open method.
Set Active to False to close the current command cursor. After that, State equals csPrepared
. Setting Active to False, calls the Close method. To close all command cursors (if the command returns multiple result sets), use the CloseAll method.