While working with TpFIBDataSet and TpFIBQuery it is also possible to use in the query macros of the following types:


@ - a sign of the beginning of the macro
% - an optional beginning of the default value of the macro
# - an optional sign that it it necessary to write the value of the macro in inverted commas.

Using macros you can dynamically change names of tables and fields in a query, conditions, etc.

To get access to values of macros use ParamByName. ParamNameCount helps to get the total number of macros in a query.

The example of using of macros:

select * from @TT%TABLE1 where @F%FIELD1=@VAL%#John

The default form of the query before sending off to the server is

select * from TABLE1 where FIELD1="John"

Preview text: While working with TpFIBDataSet and TpFIBQuery it is also possible to use in the query macroses...
Prices in Euro:

235 (1 copy)
1250 (unlimited)

Volume discounts are available...


Our 911 dispatch center needed a program to monitor the status of equipment used in emergency situations. If one dispatcher modified the status of a piece of equipment, all the other dispatchers needed to see this change immediately. The most elegant way to implement this was by using Firebird Events to asynchronously notify all the users whenever a pertinent change had occurred at the database server. After failing to implement this myself using the Firebird API, I bought a copy of FIBPlus. I dropped a Database, EventAlert and ErrorHandler control into a C++ Builder DataModule and within minutes I had all the functionality I needed. I was able to complete the project quickly and the users are thrilled with the results because I gave them more features than they originally asked for. >>

Darryl Caillouet Programmer City of Little Rock
Download full versions and updates in your Personal Area