Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Cannot call event if it is a parameter
Wed, Jul 31 2013 1:08 PMPermanent Link

Christian Kaufmann

procedure TBSDataSet.EnsureLoaded(AAfterLoad: TNotifyEvent);
var
 n : Integer;
begin      
 if State <> dsClosed then begin
   AAfterLoad(Self);   <<<<< here I get a compiler error
   Exit;
 end;        
 ...
end;

It works fine, if I assign AAfterLoad to a variable in the class
itself first.

Is it not possible to call an event like this?

cu Christian
Tue, Aug 6 2013 11:59 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Christian,

<< Is it not possible to call an event like this? >>

No, it should be - it's a bug.

Thanks,

Tim Young
Elevate Software
www.elevatesoft.com
Image