FireDAC.Comp.Client.TFDCustomCommand.State
Delphi
property State: TFDPhysCommandState read GetState;
C++
__property Firedac::Phys::Intf::TFDPhysCommandState State = {read=GetState, nodefault};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | FireDAC.Comp.Client.pas FireDAC.Comp.Client.hpp |
FireDAC.Comp.Client | TFDCustomCommand |
Description
Returns the current state of the command object.
The State property returns the current state of the command object. It has one of the following values:
Value |
Description |
---|---|
|
The command is not prepared for execution. |
|
The command is prepared for execution. |
|
The command is executing. |
|
The command is executed and it has active cursor. |
|
The command is fetching rows. |
|
The command is aborting the current operation. |
The csExecuting, csFetching, csAborting
values are "visible" if the command is executing asynchronously, or the State property is checked from other thread rather than from the performing operation.
See Also
- FireDAC.Comp.Client.TFDCustomCommand.Prepare
- FireDAC.Comp.Client.TFDCustomCommand.Execute
- FireDAC.Comp.Client.TFDCustomCommand.Open
- FireDAC.Comp.Client.TFDCustomCommand.AbortJob
- FireDAC.Comp.Client.TFDCustomCommand.Fetch
- FireDAC.Comp.Client.TFDCustomCommand.Close
- FireDAC.Comp.Client.TFDCustomCommand.Unprepare