TDataModule.CreateNew
Declaration
Source position: classesh.inc line 2309
public
constructor CreateNew(AOwner: TComponent);
constructor CreateNew(AOwner: TComponent; CreateMode: Integer); Virtual;
Description
CreateNew creates a new instance of the class, but bypasses the streaming mechanism. The CreateMode parameter (by default zero) is not used in TDataModule. If the AddDataModule handler is set, then it is called, with the newly created instance as an argument.
See also
Name | Description |
---|---|
AddDataModule | Handler called when a new TDataModule instance is created. |
TDataModule.Create | Create a new instance of a TDataModule. |
TDataModule.OnCreate | Event handler, called when the datamodule is created. |