设在工程中有一个标准模块,其中定义了如下记录类型
Type Books
Name As String* 10
TelNum As String * 20
End Type
在窗体上画一个名为 Command1的命令按钮,要求当执行事件过程Command1 Click时,
在顺序文件Person.txt中写入一条记录。 下列能够完成该操作的事件过程是 ______。

题库:计算机等级考试 类型:最佳选择题 时间:2017-07-03 15:33:31 免费下载:《单项选择》Word试卷

设在工程中有一个标准模块,其中定义了如下记录类型
Type Books
Name As String* 10
TelNum As String * 20
End Type
在窗体上画一个名为 Command1的命令按钮,要求当执行事件过程Command1 Click时,
在顺序文件Person.txt中写入一条记录。 下列能够完成该操作的事件过程是 ______。
A.Private Sub Command1_Click( )
Dim B As Books
Open "c:/Person.txt" For Output As #1
B.Name = InputBox("输入姓名")
B.TelNum = InputBox("输入电话号码")
Write #1, B.Name, B.TelNum
Close #1
End Sub
B.Private Sub Command1_Click( )
Dim B As Books
Open "c:/Person.txt, For Input As # 1
B.Name = lnputBox("输入姓名")
B.TelNum = InputBox("输入电话号码")
Print #1, B.Name, B.TelNttm
Close #1
End Sub
C.Private Sub Command1_Click( )
Dim B As Books
Open "c:/Person.txt" For Output As #1
B.Name = InputBox("输入姓名")
B.TelNum = InputBox("输入电话号码")
Write # 1, B
Close #1
End Sub
D.Private Sub Command1_Click( )
Dim B As Books
Open"c:/Person.txt" For Input As #1
Name=InputBox("输入姓名")
TelNum=InputBox("输入电话号码")
Print #1,Name,TelNum
Close #1
End Sub

设在工程中有一个标准模块,其中定义了如下记录类型    Type Books       Name As String* 10       TelNum As

本题关键词:工程设计标准,抗震工程设防分类标准,建设工程监理规模标准,监理工程规模标准规定,标准设防类,机电工程规模标准,工程建设标准批准部门,中型砌块,工程定位测量检查记录,工程建设项目招标投标范围和规模标准;

微信扫码获取答案解析
下载APP查看答案解析