填空题 VB
题号 #144664

在名称为Form1的窗体上画一个文本框,其名称为Text1,在属性窗口中把该文本框的MultiLine属性设置为True,然后编写如下的事件过程:  
Private Sub Form_Click()  
 Open "d:\test\smtext1.txt" For Input As #1  
  Do While Not ______  
   Line Input #1, aspect$  
   whole$ = whole$ + aspect$ + Chr$(13) + Chr$(10)  
  Loop  
   Text1.Text = whole$  
   Close #1  
   Open "d:\test\smtext2.txt" For Output As #1  
  Print #1, ______
  Close #1  
End Sub  
上述程序的功能是,把磁盘文件smtext1.txt的内容读到内存并在文本框中显示出来,然后把该文本框中的内容存入磁盘文件smtext2.txt。请填空。

进入在线模考

参考答案

暂无

答案解析

EOF(1) text1.text(或whole$) 

你可能感兴趣的试题

A.Form1.Name="VisualBasic窗体"  
B.Form1.Title="VisualBasic窗体"  
C.Form1.Caption="VisualBasic窗体"  
D.Form1.Text="VisualBasic窗体"
A.Private Sub Hscroll1_Change() 
   Text1.Text=HScroll1.Value  
  End Sub  
B.Private Sub Hscroll1_Click() 
   Text1.Text=HScroll1.Value  
  End Sub  
C.Private Sub Hscroll1_Change() 
   Text1.Text=Hscroll1.Caption  
  End Sub  
D.Private Sub Hscroll1_Click() 
   Text1.Text=Hscroll1.Caption  
  End Sub
找试题 · 找答案 · 找资料 在线模考