Subject Re: Firebird Event Names
Author kranas97
--- In, Helen Borrie <helebor@t...>
> At 05:32 AM 1/04/2005 +0000, you wrote:
> >In a before update, insert, delete trigger
> >it is possible to do
> >POST EVENT new.field_name
> >to post an event with the data contained in the field.
> No; events don't carry any data. They are merely named signals.
> >But if the data contains greek letters the event
> >isn't posted. If it contains only english letters and numbers
> >it works fine.
> Correct. Like other identifiers currently, event names are
restricted to
> the US ASCII character set.
> >I'm using firebird 1.5.2, database encoding WIN1253
> >and borland C++ 6. I have tried to catch events
> >with IBPP, ibx and UIB components but nothing worked.
> On your client, you have to set up event alerters to listen for
> events. IBX has one; I don't know about IBPP and UIB.
> ./heLen

Thanks for your answer.
I didn't mean to post data with the event
but to post an event named after the data contained in a field.
If for example a field named 'personid' has value (in the new record
after an insert) 'P123' then to post an event with name
P123. Ofcource this is done. The problem is when the field data
contains greek letters it doesn't post. But as you
said the name of the identifiers can contain only US ASCII chars.
I should have thought of that.
Anyway IBPP is a C++ wrapper of the firebird API and its the
fastest way to work with firebird.
Thanks a lot