[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'StdCtrls' (#lcl)

# TCustomEdit.Modified

True when the value in Text has been changed using the keyboard.

## Declaration

Source position: stdctrls.pp line 867

`public property TCustomEdit.Modified : Boolean read GetModified write SetModified;`

## Description

Modified is a Boolean property which indicates if the value in Text has been changed when a CM_TEXTCHANGED message is handled for the control. The value is set to True in the TextChanged method. The value is reset to False when RealSetText is called to store the value in Text to the buffer for the control.

In short, Modified is set to True if the value in Text is changed by user interaction with the control (keyboard or clipboard). It is set to False if the value in Text was assigned in program code.

Use event handlers, like OnEditingDone or OnChange, to perform actions needed when the value for the control has been changed.

## See also

TCustomEdit.Text |  | The text displayed and edited for the control.
TCustomEdit.TextChanged |  | Applies case conversion (if needed), and updates the editing cursor selection text.
TCustomEdit.RealSetText |  | Updates Modified and the TextHint display when storing the new Text value.
TCustomEdit.OnChange |  | Event handler signalled when the text for the control is changed.
TControl.OnEditingDone |  | Event handler signalled when editing is completed for the control.