Bde.DBTables.TTable.EncodeFieldDesc
Delphi
procedure EncodeFieldDesc(var FieldDesc: BDEFLDDesc; const Name: string; DataType: TFieldType; Size, Precision: Integer);
C++
void __fastcall EncodeFieldDesc(Bde::FLDDesc &FieldDesc, const System::UnicodeString Name, Data::Db::TFieldType DataType, int Size, int Precision);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Bde.DBTables.pas Bde.DBTables.hpp |
Bde.DBTables | TTable |
Description
Encodes the field descriptor.
Call the EncodeFieldDesc method to encode a field descriptor to the locale on the user machine.
FieldDesc represents the field descriptor.
Name represents the name of the field that needs conversion to the locale on the user machine.
DataType can be one of the TFieldType constants.
Size is used when DataType is one of the following constants: ftString, ftFixedChar, ftBytes, ftVarBytes, ftBlob, ftTypedBinary.
Precision is used when DataType is ftBCD. If Precision is not in the range from 1 through 32, then a default value of 32 is used.