RAD Studio VCL Reference
TField.OnGetText Event

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

property OnGetText: TFieldGetTextEvent;
__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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!