RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TField.OnGetText Event

Occurs when the DisplayText or Text properties of the field are referenced.

Pascal
property OnGetText: TFieldGetTextEvent;
C++
__property TFieldGetTextEvent OnGetText;

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!