RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TClientDataSet.OnNewRecord Event

Occurs when an application inserts or appends a new dataset record.

Pascal
property OnNewRecord: TDataSetNotifyEvent;
C++
__property TDataSetNotifyEvent OnNewRecord;

Write an OnNewRecord event handler to take specific actions as an application inserts or appends a new record. OnNewRecord is called as part of the insert or append process. An application might use the OnNewRecord event to set initial values for a record or as a way of implementing cascading insertions in related datasets. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!