Data.DB.TFieldList.Fields

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: property
Visibility: public
Source:
Data.DB.pas
Data.DB.hpp
Unit: Data.DB
Parent: TFieldList

Delphi

property Fields[Index: Integer]: TField read GetField; default;

C++

__property TField* Fields[int Index] = {read=GetField/*, default*/};

Description

Lists the fields in the dataset.

Use Fields to obtain a pointer to a specific field component. The Index parameter indicates the index of the field, where 0 is the index of the first field, 1 is the index of the second field, and so on.

A TFieldList with object field types, such as TADTField and TArrayField, lists child TField objects sequentially after the parent TField.

Use Fields with the Count property to iterate through all of the fields in the list.

See Also