Subject | Handling a FK violation in OnError |
---|---|
Author | Antti Kurenniemi |
Post date | 2006-09-20T18:49:12Z |
Hi all,
what's the proper way of catching a FK violation when a user tries to delete
a record? The OnError event of a TIB_Query seems like it, but maybe I'm not
using it properly because even if I set the RaiseException parameter to
False, there is still a "Record was not located for delete" error - or do I
have to do something else, like cancel the delete?
Oh, and this is using IBO 4.6
TIA,
Antti Kurenniemi
what's the proper way of catching a FK violation when a user tries to delete
a record? The OnError event of a TIB_Query seems like it, but maybe I'm not
using it properly because even if I set the RaiseException parameter to
False, there is still a "Record was not located for delete" error - or do I
have to do something else, like cancel the delete?
Oh, and this is using IBO 4.6
TIA,
Antti Kurenniemi