RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDataSource.Destroy Destructor

Destroys the instance of a data source component.

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

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. 

 

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