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


Text representation of the field


Source position: db.pas line 435

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


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



Access the field's contents as an AnsiString value.



Formatted field value



Value of the field as a variant value

Documentation generated on: May 14 2021