RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBaseDataSetAdapterField.PrepareDataSet Method

Responds when the parent dataset adapter prepares its dataset.

Pascal
procedure PrepareDataSet;
C++
__fastcall PrepareDataSet();

The parent dataset adapter calls PrepareDataSet from its own PrepareDataSet method. This allows the adapter field to reset itself as necessary to reflect the newly initialized state of the parent adapter's dataset. 

In TBaseDataSetAdapterField, PrepareDataSet releases its cached instance of the associated field component. That way, the next call to FindField checks the parent adapter's dataset for the field, in case the newly initialized dataset no longer includes the same field component. 

 

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