Site icon Embarcadero RAD Studio, Delphi, & C++Builder Blogs

Learn How to Asynchronously Execute SQL In Delphi With FireDAC

The Async sample shows you how to use the IFDPhysCommand interface to configure the different asynchronous execution modes. To this end, the sample uses a group of four radio buttons. Each radio button sets the Options.ResourceOptions.CmdExecMode property of the IFDPhysCommand interface to one of the following execution modes: amBlockingamNonBlockingamCancelDialog, and amAsync. Then, the sample executes the SQL statement using the selected asynchronous execution mode.Note: To see the differences between the execution modes, click CmdExecMode

Location

You can find the Async sample project at:

How to Use the Sample

  1. Navigate to the location given above and open IFDPhys_Async.dproj.
  2. Press F9 or choose Run > Run.

Files

File in DelphiContains
IFDPhys_Async.dproj
IFDPhys_Async.dpr
The project itself.
fAsync.pas
fAsync.fmx
The main form.

Implementation

When you run the application, you can interact with the sample using the following objects:

The original post of Embarcadero can be found in the link below:

http://docwiki.embarcadero.com/CodeExamples/Sydney/en/FireDAC.IFDPhysCommand.Async_Sample

Head over and check out the full source code of the Delphi Async Sample app for Windows.

Exit mobile version