Sign in Join
FPDoc Onlineexperiment

TSQLQuery.BeforeClose property

Member of TSQLQuerypublishedIn unit SQLDB

Event triggered before the dataset is closed.

Declaration

pascal
property BeforeClose:;

Description

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.

This description is the one of DB.TDataSet.BeforeClose.

See also

  • AfterClose
  • State

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.