TFieldDef class
Class to describe one field in a record in a dataset.
Declaration
TFieldDef = class(TNamedItem)Inheritance
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
FieldClass | public | TField class used for this fielddef. |
FieldNo | public | Field number. |
CharSize | public | Character size. |
InternalCalcField | public | Is this a definition of an internally calculated field ? |
ParentDef | public | |
Required | public | Is the field required ? |
Codepage | public | System code page for the values in string and wide string field types. |
Attributes | published | Additional attributes of the field. |
DataType | published | Data type for the field. |
ChildDefs | published | |
Precision | published | Precision used in BCD (Binary Coded Decimal) fields. |
Size | published | Size of the buffer needed to store the data of the field. |
Methods
Create | public | Constructor for TFieldDef. |
Destroy | public | Free the TFieldDef instance. |
AddChild | public | |
Assign | public | Assign the contents of one TFieldDef instance to another. |
CreateField | public | Create TField instance based on definitions in current TFieldDef instance. |
HasChildDefs | public |
Inherited
From TNamedItem (1)
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.
