vb 输入超出文件尾怎么解决
PrivateSubForm_Load()Dimstr1AsStringOpenApp.Path&"\dr441.dat"ForInputAs#1DoWhileNotEO...
Private Sub Form_Load()
Dim str1 As String
Open App.Path & "\dr441.dat" For Input As #1
Do While Not EOF(1)
Input #1, str1
Txt1.Text = Txt1.Text + str1
Loop
Close #1
End Sub 展开
Dim str1 As String
Open App.Path & "\dr441.dat" For Input As #1
Do While Not EOF(1)
Input #1, str1
Txt1.Text = Txt1.Text + str1
Loop
Close #1
End Sub 展开
1个回答
2014-02-19
展开全部
Private Sub Form_Load()
Dim str1 As String
Open App.Path & "\dr441.dat" For Input As #1
While Not EOF(1)
Line Input #1, str1
Txt1.Text = Txt1.Text + str1 + Chr(10) + Chr(13)
Wend Close #1
End Sub
Dim str1 As String
Open App.Path & "\dr441.dat" For Input As #1
While Not EOF(1)
Line Input #1, str1
Txt1.Text = Txt1.Text + str1 + Chr(10) + Chr(13)
Wend Close #1
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询