RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDBEdit.Notification Method

Overrides the inherited method to respond to opRemove notifications on the DataSource.

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

After calling the inherited method, Notification checks whether the notification indicates the removal of the DataSource. If so, Notification sets the DataSource property to nil (Delphi) or NULL (C++).  

Derived classes can override Notification method to handle additional notifications, but the inherited method should be always be called.

Note: Notification is a protected method. Applications can't call it directly.
 

 

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