[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'DB' (#fcl)


Event triggered before the dataset is closed.


Source position: db.pas line 1748

public property TDataSet.BeforeClose : TDataSetNotifyEvent
  read FBeforeClose
  write FBeforeClose;


BeforeClose is triggered before the dataset is closed. No actions have been performed yet when this event is called, and the dataset is still in dsBrowse state or one of the editing states. It can be used to prevent closing of the dataset, for instance if there are pending changes not yet committed to the database. If an exception is raised during the event handler, the dataset remains opened.

See also



Event triggered after the dataset is closed



Current operational state of the dataset

Documentation generated on: May 14 2021