 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Kevin Davidson Guest
|
Posted: Fri Jan 23, 2004 8:54 pm Post subject: Re: E:EDBEngineError |
|
|
Rômulo Nascimento wrote:
| Quote: | Hi friends,
I'm migrating my application from BDE to DBX. In my application I have a
routine to treat the Key Violation error... In the BDE this error have a
code that be equal in all Databases "9279". This is my routine.
try
DataSet.Post;
except
on E:EDBEngineError do
begin
DataSet.Cancel;
if E.Errors[0].ErrorCode <> 9729 then
begin
{ any code }
end;
end;
end;
So, how can I alter the code to work correctly with DBX + ClientDataSet visa
the same don't have the error code "9279" to Key Violation error?
Thank's in advance,
Romulo Nascimento
Norber Engenharia
Sao Paulo, Brazil.
I hope I'm wrong, but I don't think dbExpress returns a coded error. The |
OnPostError event returns an EDatabaseError, and that only has a message.
Kevin
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|