AnyDAC
ContentsIndexHome
PreviousUpNext
TADCustomCommand.State Property

Returns the current state of the command object.

Group
Links

The property State 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 current operation. 

 

csExecuting, csFetching, csAborting values are "visible" if command is executing asynchronously or State property is checked from other thread than performing operation.

property State: TADPhysCommandState;
What do you think about this topic? Send feedback!