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

TField.AsUnicodeString

Field contents as a UnicodeString

Declaration

Source position: db.pas line 414

public property TField.AsUnicodeString : UnicodeString
  read GetAsUnicodeString
  write SetAsUnicodeString;

Description

AsUnicodeString returns the field data as a Unicode string (double byte character string). If the field contains an AnsiString, the data will be converted to unicode according to the CodePage when reading, and when writing the written data will be converted to single-byte string. Note that if the field is an ansistring field, some characters may get lost when writing.

See also

TField.AsString

  

Access the field's contents as an AnsiString value.

TField.AsAnsiString

  

Return field contents as an ANSI string

TField.AsUTF8String

  

Field contents as a UTF8 String

TField.CodePage


Documentation generated on: May 14 2021