begin
probar1.Max:=adoquery2.RecordCount;
probar1.Position:=0;
while not adoquery2.eof do
begin
............
probar1.Position:=probar1.Position+1;
adoquery2.next;
end;
end;
这样进度条怎么没有反应?怎么在进度条中显示进度的百分数。多谢!
probar1.Max:=adoquery2.RecordCount;
probar1.Position:=0;
while not adoquery2.eof do
begin
............
probar1.Position:=probar1.Position+1;
adoquery2.next;
end;
end;
这样进度条怎么没有反应?怎么在进度条中显示进度的百分数。多谢!
解决方案 »
- 关于ADOquery的问题
- 如何在程序的状态栏添加气泡提示?
- 请问这样的主从表设置哪里错了?
- 在VC下用ATL写一个COM的DLL,在VB中调用时没有错误,为什么用同样的数据在Delphi中执行到某一个函数时就会抛出错误。谢谢
- 当在执行后台SQL视图或存储过程时,需用比较长的时间时,如何利用多线程通过一个进程条来显示查询的进度。
- 讨论:QQ的文件传输为什么这么快啊??
- ★承接体接收到坏数据包(在调用webservice时),100分++
- 如何使程序只运行一个,并且把shellexecute的运行参数传到已打开的程序去
- 着急的问题
- delphi实现JPG格式平滑图片压缩和自动转为RGB模式
- delphi连接远程数据库的问题
- 谁有胆量挑战“流”?就把此问题处理了。
adoquery2.first;
while not adoquery2.eof do
probar1.Max:=adoquery2.RecordCount;
probar1.Position:=0;
label.visable=true;
label.caption='dfsdf';//********竟在界面上显示什么都没有,其实有是白色的,结束后才能看到?怎么回事啊?
while not adoquery2.eof do
begin
............
probar1.Position:=probar1.Position+1;
adoquery2.next;
end;
end;
Application.ProcessMessages 试下
probar1.Max:=adoquery2.RecordCount;
probar1.Position:=0;
while not adoquery2.eof do
begin
............
probar1.Position:=probar1.Position+1;
adoquery2.next;
Application.ProcessMessages;///////////////////////此句很重要的
end;
end;
begin
Gauge1.Maxvalue:=adoquery2.RecordCount;
Gauge1.Progress:=1;
while not adoquery2.eof do
begin
............
Gauge1.Progress := Gauge1.Progress+1;
adoquery2.next;
Application.ProcessMessages;///////////////////////此句很重要的
end;
end;
TGauge控件可显示进度百分数,用法和TProgressBar差不多
probar1.Max:=adoquery2.RecordCount;
probar1.Position:=0;
while not adoquery2.eof do
begin
Application.ProcessMessages;///////////////////////此句很重要的
............
probar1.Position:=probar1.Position+1;
adoquery2.next;
end;
end;