RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSQLDataLink.RecordChanged Method

Refreshes the parameter values of the detail dataset and re-executes it.

Pascal
procedure RecordChanged(Field: TField); override;
C++
virtual __fastcall RecordChanged(TField Field);

Applications cannot call the protected RecordChanged method. It is called automatically when the contents of the current record change. The Field parameter indicates which field in the current record has changed. If Field is nil (Delphi) or NULL (C++), the entire record has changed. 

SQL datasets establish master/detail relationships by supplying parameter values from the master dataset. RecordChanged updates these parameter values on the detail dataset to reflect the current values of the master dataset and then refreshes the dataset so that it is populated with the new detail set. 

 

Params 

DetailDataSet

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!