Hi.
I have this event
procedure Tdm2.APostError(DataSet: TDataSet; E: EDatabaseError;
var Action: TDataAction);
begin
ACTION:=DAaBORT;
end;
Then this piece of pseudocode
try
table.1.edit;
table1.post
except
on E: SysUtils.Exception do begin
if islockerror(e.errocode) then
repeatit()
else
dosomethingelse();;
end;
end;
The function islockerror() checks if the error code is one of timeut, table locked, etc.
It always returns false because the E.errorcode is always "Operation aborted".
How can I get the value of the REAL error that triggered the event?
Thanks