Unit 'DB' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#fcl]

TBooleanField.DisplayValues

Textual representation of the true and false values.

Declaration

Source position: db.pas line 897

published property TBooleanField.DisplayValues : string
  read FDisplayValues
  write SetDisplayValues;

Description

DisplayValues contains 2 strings, separated by a semicolon (;) which are used to display the True and False values of the fields. The first string is used for True values, the second value is used for False values. If only one value is given, it will serve as the representation of the True value, the False value will be represented as an empty string.

A value of Yes;No will result in True values being displayed as 'Yes', and False values as 'No'. When writing the value of the field as a string, the string will be compared (case insensitively) with the value for True, and if it matches, the field's value will be set to True. After this it will be compared to the value for False, and if it matches, the field's value will be set to False. If the text matches neither of the two values, an exception will be raised.

See also

TField.AsString

  

Access the field's contents as an AnsiString value.

TField.Text

  

Text representation of the field.


Documentation generated on: Nov 22 2024