W
wxm337766
Unregistered / Unconfirmed
GUEST, unregistred user!
unit Unit1;
interface
uses
windows, messages, sysutils, classes, graphics, controls, forms, dialogs,stdctrls, extctrls,mmsystem;
type
TForm1 = class(TForm)
Button1: TButton;
Edit1: TEdit;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
procedure proendcount;
implementation
{$R *.dfm}
//timesetevent的回调函数
procedure proendcount;
begin
form1.edit1.Text:=inttostr(strtoint(form1.edit1.Text)+1);
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
timesetevent(100,1000,@proendcount,1,1);
end;
end.
运行不了,错在哪里?
interface
uses
windows, messages, sysutils, classes, graphics, controls, forms, dialogs,stdctrls, extctrls,mmsystem;
type
TForm1 = class(TForm)
Button1: TButton;
Edit1: TEdit;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
procedure proendcount;
implementation
{$R *.dfm}
//timesetevent的回调函数
procedure proendcount;
begin
form1.edit1.Text:=inttostr(strtoint(form1.edit1.Text)+1);
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
timesetevent(100,1000,@proendcount,1,1);
end;
end.
运行不了,错在哪里?