Data.DB.TDataSet.GetFieldList
Delphi
procedure GetFieldList(List: TList<TField>; const FieldNames: string); overload;
procedure GetFieldList(List: TList; const FieldNames: string); overload; deprecated 'Use overloaded method instead';
C++
void __fastcall GetFieldList(System::Generics::Collections::TList__1<TField*>* List, const System::UnicodeString FieldNames)/* overload */;
void __fastcall GetFieldList _DEPRECATED_ATTRIBUTE1("Use overloaded method instead") (System::Classes::TList* List, const System::UnicodeString FieldNames)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Data.DB.pas Data.DB.hpp |
Data.DB | TDataSet |
Description
Retrieves a specified set of field objects into a list.
Call GetFieldList to copy a specified set of field objects into a list object created and maintained by the application.
List is the TList object into which to copy the field objects. FieldNames is a string containing the name of the fields to copy. Each field name in the string must be separated from other field names with a semicolon. GetFieldList builds a list that contains only the field objects for which it finds a matching name in the dataset's list of field objects.
Note: Applications do not normally call GetFieldList to copy field objects. Field objects are directly accessible through the dataset itself. In some cases, however, it can be useful to work with a copy of a field object or its data instead of working on the actual object in the dataset.