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]