Data.DB.TField.OnGetText

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnGetText: TFieldGetTextEvent read FOnGetText write FOnGetText;

C++

__property TFieldGetTextEvent OnGetText = {read=FOnGetText, write=FOnGetText};

Properties

Type Visibility Source Unit Parent
event published
Data.DB.pas
Data.DB.hpp
Data.DB TField

Description

Occurs when the DisplayText or Text property of the field is referenced.

Write an OnGetText handler to perform custom processing for the DisplayText and Text properties. Use OnGetText to format the Value of the field differently when it must be edited from the format used when simply displaying the value, or use OnGetText to display something other than the field's value when it is displayed.

If there is no OnGetText handler, the value of the DisplayText and Text properties is simply the value of the AsString property.

OnGetText is an event handler of type Data.DB.TFieldGetTextEvent.

See Also

Code Examples