Skip to main content
Table of Contents

TTMSFNCCustomDataGridDatabaseAdapter.LoadValuesFromField Method

Fills a list with the value of a field for every record of its dataset.

API unit family: TMSFNCDataGridDatabaseAdapter Declaring type: TTMSFNCCustomDataGridDatabaseAdapter

Syntax

FMX.TMSFNCDataGridDatabaseAdapter.hppPascalC++
procedure LoadValuesFromField(AField: TField; AValues: TStrings);
void __fastcall LoadValuesFromField(Data::Db::TField* AField, System::Classes::TStrings* AValues);

Remarks

Iterates a cloned dataset when cloning is supported, so the current position is kept; otherwise the dataset itself is iterated from the first record and its position changes. Iterating a large dataset can be slow.

Parameters

Name Description
AField Field whose values are collected. Nothing happens when it is nil or has no dataset.
AValues List that receives the values. It is cleared first; duplicates are not removed.