RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDataModule.Create Constructor

Creates an instance of a data module.

Pascal
constructor Create(AOwner: TComponent); override;
C++
virtual __fastcall TDataModule(TComponent * AOwner);

Call Create to instantiate a data module at runtime if it was not created at design time. Create calls CreateNew. If an error occurs, an exception is raised. Otherwise, if OldCreateOrder is true, Create calls the OnCreate event handler for the data module if one is assigned to it. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!