VB编程问题,求大神们解答
展开全部
dim TempFile as string '定义文件路径和文件名
TempFile="C:\1.txt"
open tempfile for output as #1
print #1,text1.text+chr(13)+chr(10) '每行后加回车
print #1,text2.text+chr(13)+chr(10)
print #1,text3.text+chr(13)+chr(10)
print #1,text4.text+chr(13)+chr(10)
print #1,text5.text+chr(13)+chr(10)
print #1,text6.text+chr(13)+chr(10)
print #1,text7.text+chr(13)+chr(10)
print #1,text8.text+chr(13)+chr(10)
print #1,text9.text+chr(13)+chr(10)
print #1,text10.text+chr(13)+chr(10)
close #1
TempFile="C:\1.txt"
open tempfile for output as #1
print #1,text1.text+chr(13)+chr(10) '每行后加回车
print #1,text2.text+chr(13)+chr(10)
print #1,text3.text+chr(13)+chr(10)
print #1,text4.text+chr(13)+chr(10)
print #1,text5.text+chr(13)+chr(10)
print #1,text6.text+chr(13)+chr(10)
print #1,text7.text+chr(13)+chr(10)
print #1,text8.text+chr(13)+chr(10)
print #1,text9.text+chr(13)+chr(10)
print #1,text10.text+chr(13)+chr(10)
close #1
追问
chr(13)+chr(10)什么意思~~
追答
chr(13)+chr(10)表示回车符
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询