System.Classes.AddDataModule

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

AddDataModule: procedure (DataModule: TDataModule) of object = nil;

C++

extern DELPHI_PACKAGE void __fastcall (__closure *AddDataModule)(TDataModule* DataModule);

Properties

Type Visibility Source Unit Parent
variable public
System.Classes.pas
System.Classes.hpp
System.Classes System.Classes

Description

Defines a procedure to be called when a TDataModule class is created.

If the AddDataModule variable is set, both Create and CreateNew will invoke the procedure it defines, passing itself in the Sender parameter.

See Also