procedure TForm1.Button1Click(Sender: TObject);
var Inti :integer;
begin
Inti := 1; repeat if InternetCheckConnection('http://zicheng.oicp.net/bbsxp', 1, 0) then
begin
edit1.text:= 'Connected';
Inti:=Inti+1;
Label1.Caption:=IntToStr(Inti);
ProgressBar1.Position:=Inti;
Application.ProcessMessages( ); {这里定义了处理消息,但就是点叉,不让关闭窗口
end
else
begin
edit1.text:= 'Disconnected';
Inti:=0;
end;
until Inti<=0;end;
var Inti :integer;
begin
Inti := 1; repeat if InternetCheckConnection('http://zicheng.oicp.net/bbsxp', 1, 0) then
begin
edit1.text:= 'Connected';
Inti:=Inti+1;
Label1.Caption:=IntToStr(Inti);
ProgressBar1.Position:=Inti;
Application.ProcessMessages( ); {这里定义了处理消息,但就是点叉,不让关闭窗口
end
else
begin
edit1.text:= 'Disconnected';
Inti:=0;
end;
until Inti<=0;end;
解决方案 »
- delphi编的dll,vb调用,但是参数传递出错
- 请教高人,我将dbgrid1的数据复制到了dbgrid2,怎么将dbgrid2的内容保存到mssql数据库中?dbgrid1和dbgrid2分别是oracle和mssql
- 【110 吗?】:我被打劫,地点是DELPHI版水区!救我!
- 哪有便宜又好用的网站虚拟主机(最好赠送免费域名注册)谢谢大家
- 如何在一张报表里显示两个结果集,求教!
- 得到三个三角,散600,这是第六个100分,12:30结贴,我也要吃饭去了,呵呵!
- 将Paradox的某个表加密之后,如何在运行时打开这个表?
- 一个简单的问题,但有趣
- 如何使用SkinEngine?
- 为什么我上午的问题现在看不了了 啊?
- 操作方法修改...請大家學雷峰多提點子!
- 在用线程时提示constructor出错
TForm1 = class(TForm)
......
private
bFormClosed : Boolean;
end;procedure TForm1.FormCreate(Sender: TObject);
begin
bFormClosed := False;
end;procedure TForm1.FormCloseQuery(Sender: TObject; var CanClose: Boolean);
begin
bFormClosed := True;
end;procedure TForm1.Button1Click(Sender: TObject);
var
Inti :integer;
begin
Inti := 1;
repeat
if InternetCheckConnection('http://zicheng.oicp.net/bbsxp', 1, 0) then
begin
edit1.text := 'Connected';
Inti := Inti+1;
Label1.Caption := IntToStr(Inti);
ProgressBar1.Position := Inti;
Application.ProcessMessages( ); {这里定义了处理消息,但就是点叉,不让关闭窗口
end
else begin
edit1.text := 'Disconnected';
Inti := 0;
end;
until bFormClosed or (Inti <= 0);
end;