在vb中怎么把文本框中所有数据保存txt文件中

2024-11-25 11:05:13
推荐回答(1个)
回答1:

Private Sub Command1_Click()
Text1.Text = "tidfdfkdkj kdfkjgdf dkjfjgdf dkjfgkj dkfgkjd df dfkgjdfg dkjfgkjdfg dfkgkjdfkjg "
Open "ffffff.txt" For Output As 1
Print #1, Text1.Text
Close #1
End Sub
若满意请及时采纳,谢谢