在窗体上画一个通用对话框图,其Name属性为Cont,瑞画一个命令按钮,Name属性为Command1,然后编写如下事件过程:
Privute Sub Command1_Click( )
Cont.FileName=" "
Cont.Flags=vbOFNFileMustExist
Cont.Filter="All Files| * . *"
Cont.FilterIndes_3
Cont.DialogTitle="Open File"
Cont.Action=1
If Cont.FileName=" " Then
MsgBox "No file selected"
Else
Open Cont.FileName For Input As #1
Do While Not EOF(1)
Input #1. b$
Print b$
Loop
End If
End Sub
以下各选项,对上述事件过程描述错误的是( )。
题库:计算机等级考试
类型:最佳选择题
时间:2017-07-03 17:08:39
免费下载:《单选题》Word试卷
在窗体上画一个通用对话框图,其Name属性为Cont,瑞画一个命令按钮,Name属性为Command1,然后编写如下事件过程:
Privute Sub Command1_Click( )
Cont.FileName=" "
Cont.Flags=vbOFNFileMustExist
Cont.Filter="All Files| * . *"
Cont.FilterIndes_3
Cont.DialogTitle="Open File"
Cont.Action=1
If Cont.FileName=" " Then
MsgBox "No file selected"
Else
Open Cont.FileName For Input As #1
Do While Not EOF(1)
Input #1. b$
Print b$
Loop
End If
End Sub
以下各选项,对上述事件过程描述错误的是( )。
A.该事件过程用来建立一个Open对话框,可以在这个对话框中选择要打开的文件
B.选择后单击“打开”按钮,所选择的文件名即作为对话框的FileName属性值
C.Open对话框不仅仅用来选择一个文件,还可以打开、显示文件
D.过程中“Cont.Action=1”用来建立 Open对话框,它与Cont.ShowOpen等价
本题关键词:人为属性,金属窗框,个体性,单框双玻金属窗,金属框架杆件,三属性,个体享用性功能,金属窗,性行为,巴通体属;