Data.DB.TField.OnSetText

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: event
Visibility: published
Source:
Data.DB.pas
Data.DB.hpp
Unit: Data.DB
Parent: TField

Delphi

property OnSetText: TFieldSetTextEvent read FOnSetText write FOnSetText;

C++

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

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