FireDAC.Comp.Client.TFDCustomConnection.AbortJob

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
Unit: FireDAC.Comp.Client
Parent: TFDCustomConnection

Delphi

procedure AbortJob(AWait: Boolean = False);

C++

void __fastcall AbortJob(bool AWait = false);

Description

Use the AbortJob method to abort all running dataset operations on this connection.

The AbortJob method aborts all the following dataset operations running on this connection:

  • Open. The dataset is executing a DBMS command to open the cursor.
  • ExecSQL/Execute. The dataset is executing a DBMS command.
  • Fetch. The dataset is fetching rows from the cursor.

Example

ADConnection1.AbortJob(True);
ADConnection1.Connected := False;

See Also