Subject Re: [firebird-support] firebird-kylix problem
Author Walter Neumann
Am Donnerstag, 29. Juli 2004 19:23 schrieb mariposil:
> It's a kylix problem but maybe someone can help me.
> When firebird 1.5 returns duplicate primary key error or foreign key
> violation error, kylix3 does not capture it. This is my code:
> Try
> CLRes.ApplyUpdates(0);
> except
> on E:Exception do
> begin
> E.Message := 'Error:' + E.ClassName+' '+E.Message;
> Raise;
> end;
> end;
> Kylix does'nt execute the except clause... it's very strange...

Try except doesn't work with ApplyUpdates. But ApplyUpdates is a function. It
returns the number of rows, which couldn't updated. Every return value higher
then 0 tells you, that there was an error.

See you,