单选题
VB
题号 #152376
在窗体上画一个通用对话框,其Name属性为Cont,再画一个命令按钮,Name属性为Command1,然后编写如下事件过程:
Private Sub Command1_Click()
Cont.FileName= ""
Cont.Flags=vbOFNFileMustExist
Cont.Filter= "All Files|*.*"
Cont.FilterIndex=3
Cont.DialogTitle= "Open File"
Co nt.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
以下各选项,对上述事件过程描述错误的是( )。
参考答案
C
答案解析
暂无解析