[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Classes' (#rtl)

TDataModule.CreateNew

Declaration

Source position: line 0

public constructor TDataModule.CreateNew(

  AOwner: TComponent

);

constructor TDataModule.CreateNew(

  AOwner: TComponent;

  CreateMode: Integer

); virtual;

Description

CreateNewcreates a new instance of the class, but bypasses the streaming mechanism. The CreateModeparameter (by default zero) is not used in TDataModule. If the AddDataModulehandler is set, then it is called, with the newly created instance as an argument.

See also

TDataModule.Create

  

Create a new instance of a TDataModule.

AddDataModule

  

Handler called when a new TDataModuleinstance is created.

TDataModule.OnCreate

  

Event handler, called when the datamodule is created.