RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TField.OnSetText Event

Occurs when the Text property is assigned a value.

Pascal
property OnSetText: TFieldSetTextEvent;
C++
__property TFieldSetTextEvent OnSetText;

Write an OnSetText event handler to specify processing that occurs whenever Text receives a new value. If there is an OnGetText event handler that formats the Value of the field in some special way for editing purposes, OnSetText should reverse the process when parsing the edited string. 

If there is no OnSetText handler, the Text property is set by setting the AsString property. 

 

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