RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDataSetProvider.GetDataSetFromDelta Method

Returns a dataset positioned on the record of the source dataset that is currently being fetched or updated.

Pascal
function GetDataSetFromDelta(ATree: TUpdateTree; Source: TDataSet; Delta: TDataSet; Mode: TUpdateMode): TDataSet; virtual;
C++
virtual __fastcall TDataSet GetDataSetFromDelta(TUpdateTree ATree, TDataSet Source, TDataSet Delta, TUpdateMode Mode);

GetDataSetFromDelta is used internally to fetch a specific record when the source dataset is unidirectional. 

ATree is a TUpdateTree object that represents the update or data fetch operation. 

Source is a source dataset. Because it is unidirectional, however, it is not necessarily positioned on the correct record. 

Delta is a delta dataset that indicates the desired record. 

Mode indicates the criteria to use for locating a record on the server from the dataset that Source uses. The values that follow these criteria come from Delta. 

GetDataSetFromDelta returns a unidirectional dataset that corresponds to Source but that contains a single record based on the criteria in Delta and Mode. 

 

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