Data.DB.DefaultFieldClasses
Delphi
DefaultFieldClasses: array[TFieldType] of TFieldClass = (
nil, { ftUnknown }
TStringField, { ftString }
TSmallintField, { ftSmallint }
TIntegerField, { ftInteger }
TWordField, { ftWord }
TBooleanField, { ftBoolean }
TFloatField, { ftFloat }
TCurrencyField, { ftCurrency }
TBCDField, { ftBCD }
TDateField, { ftDate }
TTimeField, { ftTime }
TDateTimeField, { ftDateTime }
TBytesField, { ftBytes }
TVarBytesField, { ftVarBytes }
TAutoIncField, { ftAutoInc }
TBlobField, { ftBlob }
TMemoField, { ftMemo }
TGraphicField, { ftGraphic }
TBlobField, { ftFmtMemo }
TBlobField, { ftParadoxOle }
TBlobField, { ftDBaseOle }
TBlobField, { ftTypedBinary }
nil, { ftCursor }
TStringField, { ftFixedChar }
TWideStringField, { ftWideString }
TLargeIntField, { ftLargeInt }
TADTField, { ftADT }
TArrayField, { ftArray }
TReferenceField, { ftReference }
TDataSetField, { ftDataSet }
TBlobField, { ftOraBlob }
TMemoField, { ftOraClob }
TVariantField, { ftVariant }
TInterfaceField, { ftInterface }
TIDispatchField, { ftIDispatch }
TGuidField, { ftGuid }
TSQLTimeStampField, { ftTimeStamp }
TFMTBcdField, { ftFMTBcd }
TWideStringField, { ftFixedWideChar }
TWideMemoField, { ftWideMemo }
TSQLTimeStampField, { ftOraTimeStamp }
TStringField, { ftOraInterval }
TLongWordField, { ftLongWord }
TShortintField, { ftShortint }
TByteField, { ftByte }
TExtendedField,
nil, { ftConnection }
nil, { ftParams }
nil, { ftStream }
TSQLTimeStampOffsetField, { ftTimeStampOffset }
nil, { ftObject }
TSingleField); { ftSingle }
C++
extern DELPHI_PACKAGE System::StaticArray<TFieldClass, 52> DefaultFieldClasses;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
variable | public | Data.DB.pas Data.DB.hpp |
Data.DB | Data.DB |
Description
Array that holds references to field classes according to field types.
DefaultFieldClasses is an array that holds field classes according to field types. The array members are initialized with the values listed in the following table, under the Member column:
Member | Description |
---|---|
nil |
Unknown or undetermined (ftUnknown) |
Character or string field (ftString) | |
16-bit integer field (ftSmallint) | |
32-bit integer field (ftInteger) | |
16-bit unsigned integer field (ftWord) | |
Boolean field (ftBoolean) | |
Floating-point numeric field (ftFloat) | |
Money field (ftCurrency) | |
Binary-coded Decimal field that can be converted to the Currency type without loss of precision (ftBCD) | |
Date field (ftDate) | |
Time field (ftTime) | |
Date and time field (ftDateTime) | |
Fixed number of bytes (binary storage) (ftBytes) | |
Variable number of bytes (binary storage) (ftVarBytes) | |
Auto-incrementing 32-bit integer counter field (ftAutoInc) | |
Binary Large Object field (ftBlob) | |
Text memo field (ftMemo) | |
Bitmap field (ftGraphic) | |
Formatted text memo field (ftFmtMemo) | |
Paradox OLE field (ftParadoxOle) | |
dBASE OLE field (ftDBaseOle) | |
Typed binary field (ftTypedBinary) | |
nil |
Output cursor from an Oracle stored procedure (TParam only) (ftCursor) |
Fixed character field (ftFixedChar) | |
Wide string field (ftWideString) | |
Int64 large integer field (ftLargeint) | |
Abstract Data Type field (ftADT) | |
Array field (ftArray) | |
REF field (ftReference) | |
DataSet field (ftDataSet) | |
BLOB fields in Oracle 8 tables (ftOraBlob) | |
CLOB fields in Oracle 8 tables (ftOraClob) | |
Data of unknown or undetermined type (ftVariant) | |
References to interfaces (IUnknown) (ftInterface) | |
References to IDispatch interfaces (ftIDispatch) | |
Globally unique identifier (GUID) values (ftGuid) | |
Date and time field accessed through dbExpress (ftTimeStamp) | |
Binary-coded decimal field that is too large for ftBCD (ftFMTBcd) | |
A large string field in a dataset (ftFixedWideChar) | |
A memo field in a dataset (ftWideMemo) | |
A date-time field in a DBExpress dataset (ftOraTimeStamp) | |
A string field in a dataset (ftOraInterval) | |
A field that contains a 32-bit positive integer value in a dataset (ftLongWord) | |
A field that contains a small integer value in a dataset (ftShortint) | |
A field that contains a byte value in a dataset (ftByte) | |
A field that contains the highest precision floating-point value in a dataset (ftExtended) | |
nil |
Field type for TParams (ftParams) |
nil |
Field type for the TStream parameter (ftStream) |
Timestamp field with time/zone information (ftTimeStampOffset) | |
nil |
Field type for the TObject parameter; only for DataSnap (ftObject) |
Single precision floating-point number (ftSingle) |
For example:
DefaultFieldClasses[ftUnknown] = nil;
DefaultFieldClasses[ftBlob] = TBlobField;
DefaultFieldClasses[ftConnection] = nil;
DefaultFieldClasses[ftSingle] = TSingleField;