Sign in Join
FPDoc Onlineexperiment

TFields class

In unit DB

Collection of TField instances.

Declaration

pascal
TFields = class(TObject)

Inheritance

  1. TFields
  2. TObject

Description

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

Properties

ValidFieldKindsprotected
CountpublicNumber of fields in the list.
DatasetpublicDataset the fields belong to.
FieldspublicIndexed access to the fields in the list.

Methods

ClearFieldDefsprotected
Changedprotected
CheckfieldKindprotected
GetCountprotected
GetFieldprotected
SetFieldprotected
SetFieldIndexprotected
CreatepublicCreate a new instance of TFields.
DestroypublicFree the TFields instance.
AddpublicAdd a new field to the list.
CheckFieldNamepublicCheck field name for duplicate entries.
CheckFieldNamespublicCheck a list of field names for duplicate entries.
ClearpublicClear the list of fields.
FindFieldpublicFind a field based on its name.
FieldByNamepublicFind a field based on its name.
FieldByNumberpublicSearch field based on its fieldnumber.
GetEnumeratorpublicReturn an enumerator for the for..in construct.
GetFieldNamespublicGet the list of fieldnames.
IndexOfpublicReturn the index of a field instance.
RemovepublicRemove an instance from the list.

Events

OnChangeprotected

Inherited

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.