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

TField.Text

Text representation of the field.

Declaration

Source position: db.pas line 466

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.


Documentation generated on: Dec 26 2024