Sign in Join
FPDoc Onlineexperiment

TMemDataset.OnNewRecord property

Member of TMemDatasetpublishedIn unit MemDs

Event triggered when a new record is created.

Declaration

pascal
property OnNewRecord:;

Description

OnNewRecord is triggered by the Append or Insert methods when the buffer for the new record's data has been allocated. This event can be used to set default value for some of the fields in the dataset. If an exception is raised during this event handler, the operation is cancelled and the dataset is put again in browse mode ( State is again dsBrowse).

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

See also

  • Append
  • Insert
  • State

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