Classes.TDataModule.OnDestroy
From RAD Studio VCL Reference
Contents |
Delphi Information
From Classes.pas
property OnDestroy: TNotifyEvent read FOnDestroy write FOnDestroy;
Unit: Classes
Type: event
Visibility: published
Member Of: TDataModule
C++ Information
From Classes.hpp
__property TNotifyEvent OnDestroy;
Unit: Classes
Type: property
Visibility: public
Member Of: TDataModule
Description
Occurs when the data module is about to be destroyed.
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.