来一个搜索循环啊!
query1.open;
query1.first;
for i:=0 to query1.RecordCount do
begin
// ...在这里如何等到外部一变量wb传回true时才让他执行? //此处如何做?
// 比如在此等候10秒,才继续执行
While True
begin
//接收消息
Application.ProcessMessages;
if wb then break;
//睡眠0.1秒
Sleep(100);
end;
if wb=true then
begin end; next;
end;
query1.open;
query1.first;
for i:=0 to query1.RecordCount do
begin
// ...在这里如何等到外部一变量wb传回true时才让他执行? //此处如何做?
// 比如在此等候10秒,才继续执行
While True
begin
//接收消息
Application.ProcessMessages;
if wb then break;
//睡眠0.1秒
Sleep(100);
end;
if wb=true then
begin end; next;
end;
解决方案 »
- wise installation 如何添加自述文件
- 怎样隐藏listview控件的中间某一列?
- 同一段代码,当窗体设置为mdichild时不执行,不知何解?
- 用setupapi安装modem(标准33600,其实就是CDMA),不弹出硬件安装向导,怎么做呀?急!急!急!急!急!急!急!急!急!急!急!急!急!
- 我想读取CPU的序号
- 有什么控件做报表开发效率最高
- 奇怪的問題,是delphi的bug嗎?
- 救火,100分,关于索引的简单问题
- 将一个表已有数据写入一个新建的表
- 关于子窗体的问题。
- Delpi如何存取SQLSERVER的Image或者binary字段。
- 在设置墙纸是怎样可以使用 jpg 格式的文件?
去掉 Sleep,一样可以实现功能.
复贴子:
回复人:WuHeHai(河海) (2001-5-4 16:22:00) 得0分
来一个搜索循环啊!
query1.open;
query1.first;
for i:=0 to query1.RecordCount do
begin
// ...在这里如何等到外部一变量wb传回true时才让他执行? //此处如何做?
// 比如在此等候10秒,才继续执行
While True do
begin
//接收消息
Application.ProcessMessages;
if wb then break;
//睡眠0.1秒
//Sleep(100);
end;
//if wb=true then
begin end; next;
end;