VB中vbcrlf 这样使用为什么没办法换行
PrivateSubCommand1_Click()Dimi%,xh$,xm$OpenApp.Path&"\"&"y26.txt"ForOutputAs#1Fori=1T...
Private Sub Command1_Click()
Dim i%, xh$, xm$
Open App.Path & "\" & "y26.txt" For Output As #1
For i = 1 To 5
xh = InputBox("请输入学号")
xm = InputBox("请输入姓名")
Write #1, xh, xm
Next i
Close #1
End Sub
Private Sub Command2_Click()
Dim s
Open App.Path & "\" & "y26.txt" For Input As #2
Do While Not EOF(2)
Line Input #2, s
Text1.Text = Text1.Text & s & vbCrLf
Loop
Close #2
End Sub 展开
Dim i%, xh$, xm$
Open App.Path & "\" & "y26.txt" For Output As #1
For i = 1 To 5
xh = InputBox("请输入学号")
xm = InputBox("请输入姓名")
Write #1, xh, xm
Next i
Close #1
End Sub
Private Sub Command2_Click()
Dim s
Open App.Path & "\" & "y26.txt" For Input As #2
Do While Not EOF(2)
Line Input #2, s
Text1.Text = Text1.Text & s & vbCrLf
Loop
Close #2
End Sub 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询