Midware TMWTable.BeforeDelete

From Overbyte
Jump to navigation Jump to search

Main page -> Midware component reference -> TMWTable -> BeforeDelete

Definition

proporty BeforeDelete:TDataSetNotifyEvent;

Description

Occurs before an application attempts to delete the current record.

Write a BeforeDelete event handler to take specific action before an application deletes the current record. BeforeDelete is called by Delete before it actually deletes a record.

Making use of this event an application might, for example, display a dialog box asking for confirmation before deleting the record. On denial of confirmation, the application could abort the deletion by calling the Abort procedure.

BeforeDelete can also be used to keep track of user changes in data and build a request to update tables at server side.