IBX.IBEvents.TIBEvents.OnEventAlert

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnEventAlert: TEventAlert read FOnEventAlert write FOnEventAlert;

C++

__property TEventAlert OnEventAlert = {read=FOnEventAlert, write=FOnEventAlert};

Properties

Type Visibility Source Unit Parent
event published
IBX.IBEvents.pas
IBX.IBEvents.hpp
IBX.IBEvents TIBEvents

Description

Occurs when an InterBase event is received.

Write an OnEventAlert event handler to take specific actions when an InterBase event is received.

In the event handler, set CancelAlerts to true to cancel interest in any further events. To start receiving events again, call the GetAutoRegister method. You cannot call RegisterEvents, UnRegisterEvents, GetAutoRegister or SetAutoRegister from within an OnEventAlert event handler.

OnEventAlert runs as a separate thread to allow for true asynchronous event processing, however, the IBEvents component provides synchronization code to ensure that only one OnEventAlert event handler executes at any one time.