Data.DB.TField.OnSetText

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnSetText: TFieldSetTextEvent read FOnSetText write FOnSetText;

C++

__property TFieldSetTextEvent OnSetText = {read=FOnSetText, write=FOnSetText};

Properties

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

Description

Occurs when the Text property is assigned a value.

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.

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

See Also

Code Examples