TStringList.OnChange

property OnChange: TNotifyEvent Access mode: RW

Description
can be assigned to respond to changes that have occurred in the list. The handler is called whenever strings are added, moved, modified or deleted from the list.

The event is triggered after the modification took place. When the modification is about to happen, an event occurs.

Example
Following example tracks changes made to the list.