More specific Error Code from LastError Propert

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
sakis
Posts: 7
Joined: Fri 27 Apr 2018 16:15

More specific Error Code from LastError Propert

Post by sakis » Fri 27 Jul 2018 04:56

Hello
I use IBDAC 6.2.8 and i want if it possible to tell me a way for a more specific error code (note the general -902) returning from an Firebird server (like GDSCODE OR symbol) when using the TIBCConnection.LasteError or E.ErrorCode (from the TCustomDAConnection.OnError Event).

T.I.A
Sakis

ViktorV
Devart Team
Posts: 2387
Joined: Wed 30 Jul 2014 07:16

Re: More specific Error Code from LastError Propert

Post by ViktorV » Fri 27 Jul 2018 08:13

To get GDSCODE use the EIBCError.ErrorNumber property. Example:

Code: Select all

  if E is EIBCError then
   GDSCODE := EIBCError(E).ErrorNumber;
Note that to run this code, you should add the Uni and IBCError unit to the USES clause of your unit.

sakis
Posts: 7
Joined: Fri 27 Apr 2018 16:15

Re: More specific Error Code from LastError Propert

Post by sakis » Sat 22 Sep 2018 16:04

Sorry for the delay

Works perfect!!!!!!!!!!!!!!

Many Thanks
Sakis

ViktorV
Devart Team
Posts: 2387
Joined: Wed 30 Jul 2014 07:16

Re: More specific Error Code from LastError Propert

Post by ViktorV » Sat 22 Sep 2018 16:12

Thank you for the interest to our product.
Feel free to contact us if you have any further questions about our products.

Post Reply