请教高手,如何在while循环中还能点击其他的按钮等操作呀,我知道VB里面有do event,delphi里面应该如何做呀,希望高手指点,解决后立即结贴!谢谢!
解决方案 »
- 这段代码是什么意思?
- 关于数组的问题?菜
- 大侠们!帮我看看这段代码哪里错了?在线急等。。。
- 关于数据库的备份与恢复的问题
- 服务器之间Web通信问题
- 急!installshield4.0 for delphi做安装程序的怪一现象?
- 怎么把.DBF格式数据库中的数据转到ACCESS中?一个很菜的问题
- 一个最简单的问题,大家帮忙看看。谢了先!
- 为什么 OPC OnDataChange 的返回值为NULL
- 帮看看:ADOConnection1.ConnectionString:='Remote Provider={SQL Server};'....我想连不同域的另一台MS SQL SERVER 2000.
- 奇怪的现象:value of field 'COUNT(*)' if out of range
- 有关Remote Datamodule的问题 在线等
begin
while True do begin
Caption := Format('%.6f', [Now]);
Application.ProcessMessages;
if CheckBox1.Checked then Exit;
end;
end;
var
i:integer;
beginbegin
i:=0;
While i<= 1000000 do
begin
Application.ProcessMessages;
Edit1.Text:=Inttostr(i);
i:=i+1;
end;
end;
end;
应该可以
VB:DOEVENTS
DELPHI:Application.ProcessMessages;
两者等价
begin
while True do begin
FORM1.Caption := Format('%.6f', [Now]);
Application.ProcessMessages;
if CheckBox1.Checked then Exit;
end;
end;