RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDatabase.Create Constructor

Creates an instance of a TDatabase component.

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

Call Create to instantiate a database component at runtime. An application can create a database component in order to control the component's existence and set its properties and events, or an application can let Delphi create temporary database components as needed at runtime. 

AOwner is the component that is responsible for freeing the database instance. It becomes the value of the Owner property. 

 

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