Sign in Join
FPDoc Onlineexperiment

TFieldDef.CharSize property

Member of TFieldDefpublicIn unit DB

Character size.

Declaration

pascal
property CharSize: Word read GetCharSize;

Description

CharSize is only relevant for for string fields: it indicates the number of bytes used to represent a single character. It is calculated from the CodePage property and can have the following values:

  • 1 for single-byte string fields
  • 2 for UnicodeString fields
  • 4 for UTF8 strings

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.