TStringList.OnChanging

property OnChanging: TNotifyEvent Access mode: RW

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

The event is triggered before the modification will take place. When the modification has happened, an event occurs.

Example
Following example tracks changes made to the list.