Sign in Join
FPDoc Onlineexperiment

TCustomConnection.BeforeDisconnect property

Member of TCustomConnectionpublishedIn unit DB

Event triggered before a connection is closed.

Declaration

pascal
property BeforeDisconnect: TNotifyEvent read FBeforeDisconnect write SetBeforeDisconnect;

Description

BeforeDisConnect is called before a connection is closed in Close. It can be used for instance to check for unsaved changes, to save those changes, or to abort the disconnect operation: if an exception is raised during the event handler, the disconnect operation is aborted entirely.

See also

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