单选

设在工程文件中有一个标准模块,其中定义了下列记录类型:

Type Books

Name As String*10

TelNum As String*20

End,Type

在窗体上画一个名为Command1的命令按钮,要求当执行事件过程Command1 Click 时,在顺序文件Person.txt中写入一条Books类型的记录。下列能够完成该操作的事件过程是( )。

  • A.Private Sub Command1 Click( )
  • Dim B AS Books    Open"Person txt"For Output As#1    Name=InputBox(”输入姓名”)    relNum=lnputBox(”输入电话号码”)    Wlite#1 B Name,B TelNum
  • Ch,se#1
  • End Sub
  • B.Private Sub Command1 Click( )
  • Dim B AS Books    Open"Person txt"For Input As#1    >Name=InputBox("输入姓名")    TelNum=InputBox("输入电话号码")    Print#1,B.Name,B.TelNam
  • Close#1
  • End Sub
  • C.Private Sub Command1 Click( )
  • Dim BAS Books    Open"Person txt"For Output As#1    Name=InputBox("输入姓名")    TelNum=InputBox("输入电话号码")    Write#1,B
  • Close#1
  • End Sub
  • D.Private Sub Commandl Click( )    Open"Person txt"For Input As#1    Name=lnputBox("输入姓名")    TelNum=lnputBox("输入电话号码")    Prim#1 Name TelNum
  • Close#1
  • End Sub
参考答案
您可能感兴趣的试题

有弹出式菜单的结构如右表,程序运行时,单击窗体则弹出如下图所示的菜单。下面的事件过程中能正确实现这一功能的是(  )。

  • A.Private Sub Vorm Click(  )    PopupMenu cut
  • End Sub
  • B.Private Sub Command1 Click(  )    PopupMenu edit
  • End Sub
  • C.Private Sub Form. Click(  )    PopupMenu edit
  • End Sub
  • D.Private Sub Form. Click(  )    PopupMenu cut    PopupMenu paste
  • End Sub

下述关于数据库系统的叙述中,正确的是(  )。

  • A.数据库系统减少了数据冗余
  • B.数据库系统避免了一切冗余
  • C.数据库系统中数据的一致性是指数据类型一致
  • D.数据库系统比文件系统能管理更多的数据
¥

订单号:

遇到问题请联系在线客服

订单号:

遇到问题请联系在线客服