Data.DB.TFieldList.Fields

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

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

Properties

Type Visibility Source Unit Parent
property public
Data.DB.pas
Data.DB.hpp
Data.DB TFieldList

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