[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'DB' (#fcl)

# TFieldDef.Codepage

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

## Declaration

Source position: db.pas line 195

`public property TFieldDef.Codepage : TSystemCodePage read FCodePage;`

## 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

TFieldDef.Create |  | Constructor for TFieldDef.
TFieldDef.DataType |  | Data type for the field