Subject | Errors. Messages using BDE |
---|---|
Author | mivi71dk |
Post date | 2002-07-30T11:49:23Z |
Hi
When programmering up against a Firebird DB using D5 own DB Comp via
BDE, I do my Insert, Updates, deletes etc in a Try Except rutine.
My except part has a:
E: Exception.
This just returns a Error message which somewhere contains a SQLCode.
I tried swithing to E: EUpdateError, since this has a E.SQLCode
directly.
But then it doesn't stop in my exception part but rather in my
global exception part.
Is there any other way to retrieve the SQLCode besides parsing to
the message string to find the actual number ?
Michael
When programmering up against a Firebird DB using D5 own DB Comp via
BDE, I do my Insert, Updates, deletes etc in a Try Except rutine.
My except part has a:
E: Exception.
This just returns a Error message which somewhere contains a SQLCode.
I tried swithing to E: EUpdateError, since this has a E.SQLCode
directly.
But then it doesn't stop in my exception part but rather in my
global exception part.
Is there any other way to retrieve the SQLCode besides parsing to
the message string to find the actual number ?
Michael