3
3cs
Unregistered / Unconfirmed
GUEST, unregistred user!
比如有一个类A:
Unit UA;
interface
type
A = Class
private
Fonloop : TNotifyEvent;
Procedure loop;
publish
propert onloop : TNotifyEvent read Fonloop write Fonloop;
end;
procedure strloop;
implementation
procedure A.create(AOwner: TComponent)
begin
...
Fonloop:=loop;
end;
procedure A.loop;
begin
messagedlg('我被调用了!',mtconfirmation,[mbok],0);
end;
procedure strloop;
begin
if assign(Fonloop) then
onloop(self);//这个地方在编译的时候出错,这是为什么?
end;
Unit UA;
interface
type
A = Class
private
Fonloop : TNotifyEvent;
Procedure loop;
publish
propert onloop : TNotifyEvent read Fonloop write Fonloop;
end;
procedure strloop;
implementation
procedure A.create(AOwner: TComponent)
begin
...
Fonloop:=loop;
end;
procedure A.loop;
begin
messagedlg('我被调用了!',mtconfirmation,[mbok],0);
end;
procedure strloop;
begin
if assign(Fonloop) then
onloop(self);//这个地方在编译的时候出错,这是为什么?
end;