M
mystudy
Unregistered / Unconfirmed
GUEST, unregistred user!
帮我看看这个怎么会有问题的
unit unit1;
interface
uses
Windows,Messages,SysUtils,ExtCtrls,Classes;
procedure myontime(sender:TObject);
var
mytimer:Ttimer;
procedure myontime(sender:TObject);
begin
//
end;
initialization
mytimer:=Ttimer.Create(nil);
mytimer.Interval:=100;
mytimer.Enabled:=false;
mytimer.OnTimer:=myontime;//这句怎么会出错的
finalization
mytimer.Enabled:=false;
mytimer.Free;
end.
unit unit1;
interface
uses
Windows,Messages,SysUtils,ExtCtrls,Classes;
procedure myontime(sender:TObject);
var
mytimer:Ttimer;
procedure myontime(sender:TObject);
begin
//
end;
initialization
mytimer:=Ttimer.Create(nil);
mytimer.Interval:=100;
mytimer.Enabled:=false;
mytimer.OnTimer:=myontime;//这句怎么会出错的
finalization
mytimer.Enabled:=false;
mytimer.Free;
end.