Subject | Re: [IBO] IB_Event question |
---|---|
Author | Helen Borrie |
Post date | 2002-10-21T00:54:09Z |
At 01:34 AM 21-10-02 +0200, you wrote:
purpose is to listen for database events which you post from within a
trigger or stored procedure on the server.
this is the case, the methods and properties of TIB_Events will make more
sense to you if you study the Interbase manuals to get acquainted with events.
installation.
listening for database events. The Delphi event of most interest is
OnEventAlert. You can use a TTimer in your event handler here if you want
to have your app wake up and respond to certain events according to some
kind of cycle.
Helen
>Hi,TIB_Events is not related to Delphi events, such as TTimer events. Its
>
>I use the OnEventAlert event of TIB_Events component
>to refresh my tables. This is the default TTimer based mechanism.
purpose is to listen for database events which you post from within a
trigger or stored procedure on the server.
>I read in the help, that a WaitForSingleObject function can be usedWhere did you find reference to this function? I have never heard of it.
>instead of the TTimer mechanism
>(with the call of CheckEvents methodI think it is possible you don't understand what database events are. If
>and OnWakeUp event), but I do not know how it works in practice.
this is the case, the methods and properties of TIB_Events will make more
sense to you if you study the Interbase manuals to get acquainted with events.
>Please give me a short example.There is a sample application in the .\Samples\Events folder of your IBO
installation.
>No. In the normal run of things, you wouldn't involve a TTimer event in
>Can you tell me why is this method better (than the other one)?
listening for database events. The Delphi event of most interest is
OnEventAlert. You can use a TTimer in your event handler here if you want
to have your app wake up and respond to certain events according to some
kind of cycle.
Helen