TPersistent.FPOAttachObserver

Add an observer to the list of observers.

Declaration

Source position: classesh.inc line 441

public 
  procedure FPOAttachObserver(AObserver: TObject);

Description

FPOAttachObserver is part of the implementation of the IFPObserved interface in TPersistent. It adds a new observer to the list of observers. Calling this multiple times will add the observed object multiple times to the list.

Errors

An EObserver exception may be raised if AObject does not implement the IFPObserver interface.

See also

Name Description
IFPObserved Interface implemented by an object that can be observed.
IFPObserved.FPOAttachObserver Attach a new observer to the object
IFPObserver Interface for an object to observe other objects.