Data.DB.TFields.GetFieldNames
Delphi
procedure GetFieldNames(List: TStrings);
C++
void __fastcall GetFieldNames(System::Classes::TStrings* List);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Data.DB.pas Data.DB.hpp |
Data.DB | TFields |
Description
Retrieves a list of names for all fields in a fields object.
Call GetFieldNames to fill a list with the field names for all fields in the fields object. List is a TStrings descendant created and maintained by the application.
Retrieving a list of field names is especially useful for applications that work with datasets whose field objects are created dynamically at runtime. By retrieving a list of field names, the application can be restricted to working only with fields that exist at runtime.