I'm attempting to cancel a delete using Application.MessageBox displayed during the TMyTable.BeforeDelete event. If the user decides not to delete the record (IDNO), I'm issuing the TMyTable.Cancel event. However, the record is still being deleted. Why? Is there any other way to abort the delete?
Thanks
Cancelling deletes using BeforeDelete
Simply call
and the delete will be cancelled.
Code: Select all
Abort;