Occurs when the data module is about to be destroyed.
property OnDestroy: TNotifyEvent;
__property TNotifyEvent OnDestroy;
Write an OnDestroy event handler to take specific actions when an application frees a data module. For example, if the unit code for the data module instantiates any objects of its own, such as string lists, the OnDestroy event handler can be used to free those objects.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!