Page 1 of 1

More specific Error Code from LastError Propert

Posted: Fri 27 Jul 2018 04:56
by sakis
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

Re: More specific Error Code from LastError Propert

Posted: Fri 27 Jul 2018 08:13
by ViktorV
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.

Re: More specific Error Code from LastError Propert

Posted: Sat 22 Sep 2018 16:04
by sakis
Sorry for the delay

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

Many Thanks
Sakis

Re: More specific Error Code from LastError Propert

Posted: Sat 22 Sep 2018 16:12
by ViktorV
Thank you for the interest to our product.
Feel free to contact us if you have any further questions about our products.