RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TIBExtract.Notification Method

Responds to notifications when components are created or freed.

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

Notification is called automatically when objects are created or freed so that TIBExtract can make any necessary adjustments. 

AComponent is the component that was just created or that is about to be destroyed. 

Operation indicates whether AComponent was just created (opInsert) or is about to be freed (opRemove). 

In TIBExtract, Notification checks whether the components that implement the Database and Transaction properties are about to be freed, and if so, sets the appropriate property to nil (Delphi) or NULL (C++). 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!