窗体上有一个名称为Text1的文本框 一个名称为Command1的命令按钮。以下程序的功能是从顺序文件中
已帮助 人
窗体上有一个名称为Text1的文本框,一个名称为Command1的命令按钮。以下程序的功能是从顺序文件中读取数据: Private Sub Command1_Click() Dim s1 As String, s2 As String Open "c:d4.dat" For Append As #3 Line Input #3, s1 Line Input #3, s2 Text1.Text=s1+s2 Close End Sub 该程序运行时有错误,应该进行的修改是________。
A.将Line Input改为Line
B.将两条Line Input语句合并为Line Input #3, s1,s2
C.将Open语句中的For Append改为For Input
D.将Close语句改为Close #3

回答
共1条回复-
Private Sub Command1_Click( ) Open ”out.txt” For Append As #1 Print #1,Text1.Text Close #1 End Sub
