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

# TField.DisplayText

Formatted field value

## Declaration

Source position: db.pas line 426

`public property TField.DisplayText : string read GetDisplayText;`

## Description

DisplayText returns the field's value as it should be displayed to the user, with all necessary formatting applied. Controls that should display the value of the field should use DisplayText instead of the TField.AsString property, which does not take into account any formatting.

## See also

TField.AsString |  | Access the field's contents as an AnsiString value.

Documentation generated on: May 14 2021