Show: Delphi C++
Display Preferences

Data.DB.TField.Text

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Text: string read GetEditText write SetEditText;

C++

__property System::UnicodeString Text = {read=GetEditText, write=SetEditText};

Properties

Type Visibility Source Unit Parent
property public
Data.DB.pas
Data.DB.hpp
Data.DB TField

Description

Contains the string to display in a data-aware control when the field is in edit mode.

Data-aware controls rely on the Text property to provide the editing format for each field. For example, by default the Text property of a currency field omits the thousands separators and currency symbol.

Text can differ from the DisplayText property if the field uses a different string representation when the value is being edited. To implement two different string representations of a field's value, use the OnGetText event handler. If an OnGetText event handler is assigned, Text is the value returned in the Text parameter of the event handler when the DisplayText parameter is false. If there is no OnGetText event handler, Text is the value of the AsString property.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance