Data.DB.TDataSource.Destroy

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

destructor Destroy; override;

C++

__fastcall virtual ~TDataSource();

Properties

Type Visibility Source Unit Parent
destructor public
Data.DB.pas
Data.DB.hpp
Data.DB TDataSource

Description

Destroys the instance of a data source component.

Do not call Destroy directly. Instead, call Free, which checks that the data source reference is not nil before calling Destroy.

Destroy sets OnStateChange to nil (Delphi) or NULL (C++), sets the dataset for the component to nil (Delphi) or NULL (C++), and frees the data link list before calling the inherited destructor for the component.

See Also