BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: E:EDBEngineError

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress)
View previous topic :: View next topic  
Author Message
Kevin Davidson
Guest





PostPosted: Fri Jan 23, 2004 8:54 pm    Post subject: Re: E:EDBEngineError Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.