Sign in Join
FPDoc Onlineexperiment

TFieldDef class

In unit DB

Class to describe one field in a record in a dataset.

Declaration

pascal
TFieldDef = class(TNamedItem)

Inheritance

  1. TFieldDef
  2. TNamedItem
  3. TCollectionItem
  4. TPersistent
  5. TObject

Descends from it: TSQLDBFieldDef

Description

TFieldDef is used to describe the fields that are present in the data underlying the dataset. For each field in the underlying field, an TFieldDef instance is created when the dataset is opened. This class offers almost no methods, it is mainly a storage class, to store all relevant properties of fields in a record (name, data type, size, required or not, etc.)

See also

Properties

FieldClasspublicTField class used for this fielddef.
FieldNopublicField number.
CharSizepublicCharacter size.
InternalCalcFieldpublicIs this a definition of an internally calculated field ?
ParentDefpublic
RequiredpublicIs the field required ?
CodepagepublicSystem code page for the values in string and wide string field types.
AttributespublishedAdditional attributes of the field.
DataTypepublishedData type for the field.
ChildDefspublished
PrecisionpublishedPrecision used in BCD (Binary Coded Decimal) fields.
SizepublishedSize of the buffer needed to store the data of the field.

Methods

CreatepublicConstructor for TFieldDef.
DestroypublicFree the TFieldDef instance.
AddChildpublic
AssignpublicAssign the contents of one TFieldDef instance to another.
CreateFieldpublicCreate TField instance based on definitions in current TFieldDef instance.
HasChildDefspublic

Inherited

From TNamedItem (1)

Name

From TCollectionItem (11)

Changed Collection DisplayName GetDisplayName GetNamePath GetOwner ID Index SetCollection SetDisplayName SetIndex

From TPersistent (5)

AssignTo DefineProperties FPOAttachObserver FPODetachObserver FPONotifyObservers

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.