Unit 'DB' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#fcl]


[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Collection of #fcl.db.TField instances.


Source position: db.pas line 1330

type TFields = class(TObject)


  constructor Create();


Create a new instance of TFields.

  destructor Destroy; override;


Free the TFields instance.

  procedure Add();


Add a new field to the list.

  procedure CheckFieldName();


Check field name for duplicate entries.

  procedure CheckFieldNames();


Check a list of field names for duplicate entries.

  procedure Clear;


Clear the list of fields.

  function FindField();


Find a field based on its name.

  function FieldByName();


Find a field based on its name.

  function FieldByNumber();


Search field based on its fieldnumber.

  function GetEnumerator;


Return an enumerator for the for..in construct.

  procedure GetFieldNames();


Get the list of fieldnames.

  function IndexOf();


Return the index of a field instance.

  procedure Remove();


Remove an instance from the list.

  property Count: Integer; [r]


Number of fields in the list.

  property Dataset: TDataSet; [r]


Dataset the fields belong to.

  property Fields []: TField; default; [rw]


Indexed access to the fields in the list.





Collection of #fcl.db.TField instances.




TFields mimics a TCollection class for the Fields property of TDataset instance. Since TField is a descendent of TComponent, it cannot be an item of a collection, and must be managed by another class.

See also



Provide access to the contents of a single field in a record.



Base class for records-based data-access.



Indexed access to the fields of the dataset.

Documentation generated on: Jul 24 2023