Sign in Join
FPDoc Onlineexperiment

TDataSet.BeforeInsert property

Member of TDataSetpublicIn unit DB

Event triggered before the dataset is put in insert mode.

Declaration

pascal
property BeforeInsert: TDataSetNotifyEvent read FBeforeInsert write FBeforeInsert;

Description

BeforeInsert is triggered at the start of the Append or Insert methods. The dataset is still in dsBrowse state when this event is triggered. If an exception is raised in the BeforeInsert event handler, then the dataset will remain in dsBrowse state, and the append or insert operation is cancelled.

See also

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