API:Data.Win.ADODB.TADOQuery.Destroy

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

destructor Destroy; override;

C++

__fastcall virtual ~TADOQuery();

Properties

Type Visibility Source Unit Parent
destructor public
Data.Win.ADODB.pas
Data.Win.ADODB.hpp
Data.Win.ADODB TADOQuery

Description

Destroys the TCustomADODataSet instance.

Data.Win.ADODB.TADOQuery.Destroy inherits from Data.Win.ADODB.TCustomADODataSet.Destroy. All content below this line refers to Data.Win.ADODB.TCustomADODataSet.Destroy.

Destroys the TCustomADODataSet instance.

Do not call Destroy directly in an application. Usually destruction of datasets is handled automatically by Delphi. If an application creates its own instances of a dataset, however, and does not assign an Owner that is responsible for freeing the dataset, then the application should call Free, which verifies that the dataset reference is not nil before calling Destroy.

Destroy performs the following tasks:

Closes the dataset.

Disconnects from the associated database.

Calls the inherited destructor.

See Also