RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TFields.GetFieldNames Method (TStrings)

Retrieves a list of names for all fields in a fields object.

Pascal
procedure GetFieldNames(List: TStrings); overload;
procedure GetFieldNames(List: TWideStrings); overload;
C++
__fastcall GetFieldNames(TStrings List);
__fastcall GetFieldNames(TWideStrings List);

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. 

 

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