Data.DB.TFields

From RAD Studio API Documentation
Jump to: navigation, search

System.TObjectTFields

Delphi

TFields = class(TObject)

C++

class PASCALIMPLEMENTATION TFields : public System::TObject

Properties

Type Visibility Source Unit Parent
class public
Data.DB.pas
Data.DB.hpp
Data.DB Data.DB

Description

TFields holds the field (TField) objects that represent the physical fields underlying a dataset or an object field such as TADTField and TArrayField.

TFields is used by a dataset to manage the field objects that correspond to fields in the database table and by object fields to manage child fields.

When Data.DB.TDataSet.ObjectView is true, the fields are stored hierarchically, meaning any child fields of an object field are referenced by the object field and do not appear sequentially after the object field in the Fields array. When ObjectView is false, the fields are stored sequentially, or flattened out, meaning any child fields of an object field are stored sequentially in the Fields array.

Use the properties and methods of TFields to:

  • Access a specific field.
  • Add or delete persistent field components from the list.
  • Determine the number of fields.

See Also