Firebird - conflicts detection
Posted: Tue 05 Aug 2014 19:40
Hello
When i user try to post updates on a TUniTable component, i get this exception:
"Refresh failed. Found 0 records"
This is because another user does an update on the same record at the same time.
I want to detect this conflicts and display my own error message.
I have done something like that:
Do you think devart will change the ""Refresh failed. Found 0 records" message in the future ?
Is there another way to detect this situation (Exception type ? Error number ?))
Thanks
When i user try to post updates on a TUniTable component, i get this exception:
"Refresh failed. Found 0 records"
This is because another user does an update on the same record at the same time.
I want to detect this conflicts and display my own error message.
I have done something like that:
Code: Select all
try
...
MyUniTable.post;
except
on foo: Exception do begin
if foo.Message="Refresh failed. Found 0 records" then
begin
<here is my custom message>
end;
end;Is there another way to detect this situation (Exception type ? Error number ?))
Thanks