如何恢复此溢出错误? [英] How do I recover this Overflow Error?

查看:84
本文介绍了如何恢复此溢出错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我使用Vb.net项目阅读数字文本文件,但输入语句中出现错误。

错误消息告诉我有一个溢出,在我读完帮助后,它告诉我可能会被零或类似的东西分开。

我没有任何分工。



我附上了出现错误的代码行。

文件包含双号。

当我按下工具栏中的继续按钮时,程序的执行继续。



Hi,
I work with Vb.net project to read text file of numbers, but an error occur in the input statement.
the error message tells that there is an overflow and after I read the help it told that there may division by zero or something like that.
I did not have any division.

I attached the lines of code in which an error appeared.
the file contains double numbers.
The execution of the program continue when I press the "continue" button in the toolbar.

FileOpen(33, "D:\Face_files\Moments_DBUPC_After128_Numbered.txt", OpenMode.Input, OpenAccess.Read)
           For i = 1 To row - 1
           Input(33, RowNo)   
           ' Input(33, str)
           ' MsgBox(str)
           Input(33, id)
           Input(33, picno)





请帮帮我。

问候,

Wathiq



please help me.
regards,
Wathiq

推荐答案

如果文件包含双号,请确保您的变量被定义为double,以便从文件中接收数据。



它看起来有点可疑您在循环中读取数据但在每个循环周期中读取三行。这真的是你打算做的吗?。
If the file contains double numbers make sure that your variable is defined as double in order to receive the data from the file.

Also it looks a bit suspicious that you read data in a loop but you read three lines in each loop cycle. Is this really what you intend to do?.


这篇关于如何恢复此溢出错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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