How to get Eorror Code for Firebird GDSCODE

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
z.j
Posts: 2
Joined: Sat 26 May 2018 03:09

How to get Eorror Code for Firebird GDSCODE

Post by z.j » Sat 26 May 2018 03:26

How to get Eorror Code for Firebird GDSCODE

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

Re: How to get Eorror Code for Firebird GDSCODE

Post by ViktorV » Tue 29 May 2018 11:04

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

Code: Select all

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

z.j
Posts: 2
Joined: Sat 26 May 2018 03:09

Re: How to get Eorror Code for Firebird GDSCODE

Post by z.j » Thu 31 May 2018 14:39

Thanks

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

Re: How to get Eorror Code for Firebird GDSCODE

Post by ViktorV » Thu 31 May 2018 14:42

Thank you for the interest in our products.
If you have any questions during using our products, please don't hesitate to contact us - and we will try to help you solve them.

Post Reply