FireDAC.Comp.Client.TFDCustomCommand.OpenOrExecute
Delphi
function OpenOrExecute(ABlocked: Boolean = False): Boolean;
C++
bool __fastcall OpenOrExecute(bool ABlocked = false);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FireDAC.Comp.Client.pas FireDAC.Comp.Client.hpp |
FireDAC.Comp.Client | TFDCustomCommand |
Description
Executes the SQL command, and optionally returns the cursor.
Call the OpenOrExecute method to execute the SQL command and optionally return the cursor. If the SQL command returns the cursor,
State takes the csActive
value after the call, and you can fetch rows from the current cursor using the Fetch method. If the SQL command does not return the cursors then the State will take the csPrepared
value.
The OpenOrExecute method is useful when you do not know the kind of the command to be executed.