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

TField.Text

Text representation of the field

Declaration

Source position: db.pas line 411

public property TField.Text: String
  read GetEditText
  write SetEditText;

Description

Text can be used to retrieve or set the value of the value as a string value for editing purposes. It will trigger the TField.OnGetText event handler if a handler was specified. For display purposes, the TField.DisplayText property should be used. Controls that should display the value in a textual format should use text whenever they must display the text for editing purposes. Inversely, when a control should save the value entered by the user, it should write the contents to the Text property, not the AsString property, this will invoke the Tfield.OnSetText event handler, if one is set.

See also

TField.AsString

  

Access the field's contents as an AnsiString value.

TField.DisplayText

  

Formatted field value

TField.Value

  

Value of the field as a variant value

The latest version of this document can be found at lazarus-ccr.sourceforge.net.