Subject RE: [IBO] Deleting records, or not
Author Svein Erling Tysvær
You may want to take a look at the OnConfirmDelete (I assume setting Confirmed to false will cancel the delete) and OnCustomDelete (or possibly OnGetCanModify) events.

HTH,
Set

-----Original Message-----
From: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com] On Behalf Of Emerson - IBO - Firebird
Sent: 17. november 2010 12:56
To: IBObjects Group
Subject: [IBO] Deleting records, or not

Hi everyone!

Is there any way to "cancel" a delete command in a TIB_Query?

Let me explain: when user delete a record in a TIB_Grid i would like to
cancel this operation and replace the usual behaviour for my own set of
commands.

Maybe in OnBeforeDelete event? But, how i cancel the delete operation?

Thanks!!

Emerson