Vb 6.0中的标签刷新问题 [英] Label refresh problem in Vb 6.0

查看:98
本文介绍了Vb 6.0中的标签刷新问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的先生,


i从vb逐行读取文本文件,并通过pl / sql程序在oracle表中插入。
文本文件中的
记录是70000,在我的代码中我做了一个循环来读取循环中的数据并通过pl / sql过程插入到oracle中。
循环中的
我在循环设置计数器值的启动时创建一个计数器= 1

循环运行70000次因为文本文件中的数据是70000.

所以我在标签中显示标签,计数器值显示在标签中
每次
和刷新标签..但是一段时间之后标签刷新就停止了..但处理正在进行......但我不知道标签刷新是如何停止........ plz帮助我。 ..


谢谢

Akhtar Ali

akh_jhs@yahoo.com

Dear Sir,

i am reading a text file line by line from vb and insert in oracle table through pl/sql procedure.
in text file record is 70000, in my code i make a loop to read data in loop and insert in a oracle through pl/sql procedure.
in a loop i make a counter in the starting of loop set counter value=1
loop is run 70000 time becos data in text file is 70000.
so i am display a label in the form the counter value display in label
and refresh label every time..but after some time label refreshing is stop..but processing is going on...but i dont know how label refreshing is stop........plz help me...

thanks
Akhtar Ali
akh_jhs@yahoo.com

推荐答案


尊敬的先生,


i我从vb逐行读取文本文件并通过pl /在oracle表中插入sql程序。

in te xt文件记录是70000,在我的代码中我循环读取循环中的数据并通过pl / sql过程插入到oracle中。
循环中的
我在循环集的启动中创建一个计数器计数器值= 1

循环运行70000次因为文本文件中的数据是70000.

所以我在标签中显示一个标签,计数器值显示在标签中/>
并且每次都刷新标签..但是经过一段时间后标签刷新就停止了..但处理正在进行......但是我不知道标签刷新是如何停止的........ plz帮助我...


谢谢

Akhtar Ali

akh_jhs@yahoo.com
Dear Sir,

i am reading a text file line by line from vb and insert in oracle table through pl/sql procedure.
in text file record is 70000, in my code i make a loop to read data in loop and insert in a oracle through pl/sql procedure.
in a loop i make a counter in the starting of loop set counter value=1
loop is run 70000 time becos data in text file is 70000.
so i am display a label in the form the counter value display in label
and refresh label every time..but after some time label refreshing is stop..but processing is going on...but i dont know how label refreshing is stop........plz help me...

thanks
Akhtar Ali
akh_jhs@yahoo.com



您在循环中使用的计数器I的数据类型是什么。


只需创建一个测试表单,放置一个标签并将此代码放在form_load中

/////////////// ///////////////////////////

Dim i As Long

For i = 1至70000

Label1.Caption = i

下一页我

//////////////// //////////////////////////

这应该在标签上显示值70000.


这就是你想要的。只需显示计数器值。


谢谢

ansuman sahu


What is the datatype of the counter I that you are using in the loop.

Just create a test form , place a lable and place this code in form_load
//////////////////////////////////////////
Dim i As Long
For i = 1 To 70000
Label1.Caption = i
Next i
//////////////////////////////////////////
this should display the value 70000 on the label.

This is what you want. Just display the counter value.

thanks
ansuman sahu



您在循环中使用的计数器I的数据类型是什么。


只需创建一个测试表单,放置一个标签并将此代码放在form_load中

/////////////// ///////////////////////////

Dim i As Long

For i = 1至70000

Label1.Caption = i

下一页我

//////////////// //////////////////////////

这应该在标签上显示值70000.


这就是你想要的。只需显示计数器值。


谢谢

ansuman sahu
What is the datatype of the counter I that you are using in the loop.

Just create a test form , place a lable and place this code in form_load
//////////////////////////////////////////
Dim i As Long
For i = 1 To 70000
Label1.Caption = i
Next i
//////////////////////////////////////////
this should display the value 70000 on the label.

This is what you want. Just display the counter value.

thanks
ansuman sahu



亲爱的Ansuman,


i已完成此活动没有问题,因为它没有连接到oracle,但是当我从循环中的文本文件中读取数据读取一行并插入oracle表时,我的问题不同。

每次逐行读取文件并在oracle中插入..我想在我的表单中显示counetr使用标签从文本文件中读取多少行并在oracle中插入...它可以工作一段时间... ...但是一段时间后光标正忙,应用程序挂起......但是正在进行.....并且屏幕计数器没有增加。

由于光标繁忙。所以我无法理解为什么应用程序挂起而光标很忙......


问候

Akhtar

Dear Ansuman,

i have done this activity no problem becos its not connected to oracle,but my problem is diffrent when i read data from text file in a loop read one line and insert in oracle table .
each time read file line by line and insert in oracle ..i want to show counetr in my form using label how many line read from text file and insert in oracle...it works for some time ......but after some time cursor is busy and application is hang ....but proceesing is going on.....and in the screen counter is not increase.
due to cursor busy.so i am not able to understand why application is hang and cursor is busy......

Regards
Akhtar


亲爱的安苏曼,


i已经完成了这项活动没有问题,因为它没有连接到oracle,但我的p roblem是不同的,当我从循环中的文本文件读取数据读取一行并插入oracle表。

每次逐行读取文件并插入oracle ..我想在我的显示counetr使用标签形成从文本文件中读取多少行并在oracle中插入...它工作了一段时间......但是一段时间后光标很忙并且应用程序挂起......但是正在进行... ...并且在屏幕计数器中没有增加。

由于光标很忙。所以我无法理解为什么应用程序挂起而光标很忙......


问候

Akhtar
Dear Ansuman,

i have done this activity no problem becos its not connected to oracle,but my problem is diffrent when i read data from text file in a loop read one line and insert in oracle table .
each time read file line by line and insert in oracle ..i want to show counetr in my form using label how many line read from text file and insert in oracle...it works for some time ......but after some time cursor is busy and application is hang ....but proceesing is going on.....and in the screen counter is not increase.
due to cursor busy.so i am not able to understand why application is hang and cursor is busy......

Regards
Akhtar



我确切地知道你的意思,我发现这与大多数编程语言的循环我已经看到,一旦循环持续这么长时间,你在每个循环中做了一些事情,应用程序似乎进入非响应模式,但实际上仍在运行循环。


我有同样的问题(很相似)我做的是我做了一个计时器,间隔为5毫秒,但是创建一些私有整数,例如

I know exactly what you mean, i find this with loops with most programming languages ive seen, once the loop goes on for so long and you are doing a few things each loop the app appears to go into a non responsive mode, but infact is still running the loop.

I had the same problem (well similar) what i did was i made a timer to interval at 5 milliseconds, but create some private integers, for example

展开 | 选择 | Wrap | 行号


这篇关于Vb 6.0中的标签刷新问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆