vb中调用外txt文档时出现乱码怎么解决
调用源程序:PrivateSubCommand2_Click()DimlinesAsStringDimnextlineAsStringOpen"d:\rj\azyvb.t...
调用源程序:
Private Sub Command2_Click()
Dim lines As String
Dim nextline As String
Open "d:\rj\azyvb.txt" For Input As #1
Text7.Text = ""
Do Until EOF(1)
Line Input #1, nextline
lines = lines & nextline & Chr(13) & Chr(10)
Loop
Close #1
Text7.Text = lines
End Sub 展开
Private Sub Command2_Click()
Dim lines As String
Dim nextline As String
Open "d:\rj\azyvb.txt" For Input As #1
Text7.Text = ""
Do Until EOF(1)
Line Input #1, nextline
lines = lines & nextline & Chr(13) & Chr(10)
Loop
Close #1
Text7.Text = lines
End Sub 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询