RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDataSetProvider.Notification Method

Responds to notifications that objects are being created or destroyed.

Pascal
procedure Notification(AComponent: TComponent; Operation: TOperation); override;
C++
virtual __fastcall Notification(TComponent * AComponent, TOperation Operation);

Notification overrides the inherited method to add a check that the dataset specified by the DataSet property is not being deleted. If DataSet is about to be destroyed, Notification sets the DataSet property to nil (Delphi) or NULL (C++). 

 

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