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


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


Source position: db.pas line 195

public property TFieldDef.Codepage : TSystemCodePage
  read FCodePage;


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



Constructor for TFieldDef.



Data type for the field

Documentation generated on: May 14 2021