matching db error errorcode
Posted: Sat 10 Sep 2005 12:37
Hi,
i have one problem, when handling OnDeleteError, OnEditError or OnPostError. In this event handlers i have this code:
In documentation is written that in myError->ErrorCode is MySQL error code number, but when i check the MySQL documentation none of given error codes are matching
am i doing something wrong? can you help me 
Example: when selected record row is deleted and in other connection i am trying to edit this record row the OnEditError is fired and in myError->ErrorCode is 9997612 and in myError->Message is "Refresh failed. Found 0 records."
TMyQuery.RefreshOptions = [roAfterInsert, roAfterUpdate, roBeforeEdit]
i have one problem, when handling OnDeleteError, OnEditError or OnPostError. In this event handlers i have this code:
Code: Select all
EMyError *myError = (EMyError *)E;
if ( myError )
Memo1->Lines->Add("Error >["+ IntToStr( myError->ErrorCode )+"] "+myError->Message);Example: when selected record row is deleted and in other connection i am trying to edit this record row the OnEditError is fired and in myError->ErrorCode is 9997612 and in myError->Message is "Refresh failed. Found 0 records."
TMyQuery.RefreshOptions = [roAfterInsert, roAfterUpdate, roBeforeEdit]