FireDAC.Comp.Client.TFDCustomCommand.State

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: property
Visibility: public
Source:
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
Unit: FireDAC.Comp.Client
Parent: TFDCustomCommand

Delphi

property State: TFDPhysCommandState read GetState;

C++

__property Firedac::Phys::Intf::TFDPhysCommandState State = {read=GetState, nodefault};

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

csInactive

The command is not prepared for execution.

csPrepared

The command is prepared for execution.

csExecuting

The command is executing.

csOpen

The command is executed and it has active cursor.

csFetching

The command is fetching rows.

csAborting

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