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

TDataModule.Create

Create a new instance of a TDataModule.

Declaration

Source position: classesh.inc line 1518

public constructor TDataModule.Create(

  AOwner: TComponent

); override;

Description

Createcreates a new instance of the TDatamoduleand calls TDatamodule.CreateNew. After that it reads the published properties from a stream using InitInheritedComponentif a descendent class is instantiated. If the OldCreateOrderproperty is True, the OnCreateevent is called.

Errors

An exception can be raised during the streaming operation.

See also

TDataModule.CreateNew