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

Learn More About The Powerful Macros Property Of IFDPhysCommand With FireDAC In Delphi

The sample allows you to modify the macro values at run time.Note: See the Preprocessing Command Text topic for more information about parameterizing SQL command texts.

Location

You can find the Macros sample project at:

How to Use the Sample

  1. Navigate to the location given above and open IFDPhys_Macros.dproj.
  2. Press F9 or choose Run > Run.
  3. Click on the Use Connection Definition combo box and select an option.
  4. Interact with the sample:
    • Modify the values of the Macros to retrieve the desired data. For example, change 'Address' to 'First Name'.
    • Click the Fetch button and see the retrieved data.

Files

File in DelphiContains
IFDPhys_Macros.dproj
IFDPhys_Macros.dpr
The project itself.
fMacros.pas
fMacros.fmx
The main form.

Implementation

When you run the application, you see the following components that are configured on run time:

Fore more information you can follow the link below:

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

Head over and check out the full source code for the FireDAC macros sample on Embarcadero’s GitHub.

Exit mobile version