TDataDriverEh.AssignFieldValue Method

Assigns a field value from ReaderDataSet to the field of MemRec record.

procedure AssignFieldValue(MemTableData: TMemTableDataEh; MemRec: TMemoryRecordEh; DataFieldIndex: Integer; DataValueVersion: TDataValueVersionEh; ReaderDataSet: TDataSet); virtual;

AssignFieldValue is called automatically from TDataDriverEh.DefaultReadRecord for every field in record. 

DataValueVersion specify a type of values of the field. When new record is reading DataValueVersion has dvvValueEh value. When record is updating the DataValueVersion has dvvRefreshValue value. In this case if record already changed in MemTableData, it is necessary to update old values of record.

Copyright (c) 1998-2013. All rights reserved.
What do you think about this topic? Send feedback!