VB输入超出了文件尾

[复制链接]
查看11 | 回复2 | 2009-4-22 16:29:40 | 显示全部楼层 |阅读模式
Dim Index As Integer
Line Input #1, s
s = Trim(s)
If s = "End" Then
Close #1
调试的时候出现输入超出文件尾 要怎么弄
问题补充:Private Sub Timer2_Timer()
Dim s As String
Dim Index As Integer
Line Input #1, s
s = Trim(s)
If s = "End" Then
Close #1
Timer2.Enabled = False
Command2.Enabled = True
Label1_MouseMove 0, 0, 1, 1
Exit Sub
End If
Index = Val(s)
If Index < 100 Then
Index = Index + 7
Picture1_DragOver Index, Picture1(Index), 1, 1, 1
Index = Index + 24
Picture1_DragOver Index, Picture1(Index), 1, 1, 1
End If
isagain = True
End Sub 这个是整段代码

回复

使用道具 举报

千问 | 2009-4-22 16:29:40 | 显示全部楼层
f s = "End" Then 改成If eof(1) Then...
回复

使用道具 举报

千问 | 2009-4-22 16:29:40 | 显示全部楼层
不用line看看。。...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行