From RAD Studio API Documentation
Jump to: navigation, search



TBDECallback = class


class PASCALIMPLEMENTATION TBDECallback : public System::TObject


Type Visibility Source Unit Parent
class public
Bde.DBTables Bde.DBTables


TBDECallback is a wrapper for a Borland Database Engine (BDE) callback function.

Use a TBDECallback object to register a callback function with the BDE. Callbacks allow an application to instruct the BDE to take specific actions in response to events that occur during a BDE function call.

For example, the TBatchMove object may encounter problems when executing the corresponding BDE batch operation. A callback function can respond to those problems by instructing the BDE to generate a problems table or to trim the data so that the operation succeeds.

To use a TBDECallback object, take the following steps:

  1. Create an instance of TBDECallback to register the callback with the BDE.
  2. Call the BDE function in which the pertinent events take place. For example, create an instance of TBatchMove, and call its Execute method.
  3. When the BDE function returns, destroy the TBDECallback object to unregister the callback function.

See Also