RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDatabase.Destroy Destructor

Destroys the instance of a database component.

Pascal
destructor Destroy; override;
C++
virtual __fastcall ~TDatabase();

Do not call Destroy directly in an application. Instead, call Free, which verifies that the database reference is not nil before calling Destroy  

Destroy closes all active datasets and disconnects from the database server, if necessary. It then frees the string resources allocated for the Params and DataSets properties before calling its inherited destructor. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!