[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Class to describe one field in a record in a dataset.
Source position: db.pas line 174
type TFieldDef = class(TNamedItem) |
||
public |
||
constructor Create(); |
|
Constructor for TFieldDef. |
destructor Destroy; override; |
|
Free the TFieldDef instance. |
function AddChild; |
||
procedure Assign(); override; |
|
Assign the contents of one TFieldDef instance to another. |
function CreateField(); |
|
Create TField instance based on definitions in current TFieldDef instance. |
function HasChildDefs; |
||
property FieldClass: TFieldClass; [r] |
|
TField class used for this fielddef. |
|
Field number. |
|
|
Character size. |
|
property InternalCalcField: Boolean; [rw] |
|
Is this a definition of an internally calculated field ? |
property Required: Boolean; [rw] |
|
Is the field required ? |
property Codepage: TSystemCodePage; [r] |
|
System code page for the values in string and wide string field types. |
published |
||
property Attributes: TFieldAttributes; [rw] |
|
Additional attributes of the field. |
property DataType: TFieldType; [rw] |
|
Data type for the field. |
property ChildDefs: TFieldDefs; [rws] |
||
|
Precision used in BCD (Binary Coded Decimal) fields. |
|
|
Size of the buffer needed to store the data of the field. |
|
end; |
|
Class to describe one field in a record in a dataset. |
|
| | ||
|
Named collection item. |
|
| | ||
| | ||
| | ||
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.)
|
Definitions of available fields in the underlying database. |
|
|
Collection of TFieldDef instances. |