Skip to content

TFieldDef.Codepage

System code page for the values in string and wide string field types.

Declaration

Source position: db.pas line 212

public property Codepage: TSystemCodePage;

Description

Codepage is a read-only TSystemCodePage property with the system code page used for values in the field. The value in CodePage is assigned in the overloaded constructor which includes a TSystemCodePage argument. CodePage is relevant for string or wide string field types, and uses the following values:

ftString, ftFixedChar, ftMemo
Uses the value passed in the argument. The default value is 0.
ftWideString, ftFixedWideChar, ftWideMemo
Use the value in the CP_UTF16 constant.
Other non-string field types
Uses the value 0 in Codepage.

See also

Name Description
TFieldDef.Create Constructor for TFieldDef.
TFieldDef.DataType Data type for the field.