OnDeleteError with TMyQuery
Posted: Thu 22 May 2008 14:27
If the database returns an error, I handle it with the OnDeleteError
As far as I know, there's a EMyError class, witch gives the exact messages and errornumbers of the MySQL database. But why is OnDeleteError using EDatabaseError. Does it give the same results as EMyError?
Code: Select all
procedure TFrm.FunctieAanvraagDeleteError(DataSet: TDataSet;
E: EDatabaseError; var Action: TDataAction);
begin
Action := daAbort;
ShowMessage(E.ClassName+' ERROR : '#13#10+E.Message);
end;