5,388
社区成员
发帖
与我相关
我的任务
分享
procedure bb.Execute;
var
i:integer;
begin
i:=0;
while not Terminated do
begin
form1.Memo1.Lines.Add('1:'+inttostr(i)); //步聚一
i:=i+1;
if terminated=true then exit;
sleep(5000);
if Terminated then Exit; //不断的检测
form1.Memo1.Lines.Add('2:'+inttostr(i)); //步聚二
i:=i+1;
if terminated=true then exit;
sleep(3000);
if Terminated then Exit; //不断的检测
form1.Memo1.Lines.Add('3:'+inttostr(i)); //步聚三
i:=i+1;
if terminated=true then exit;
sleep(3000)
end;
end;