问题
单项选择题
已知通用对话框名为Cdlg,则执行下列的______语句,将弹出“另存为”对话框。
A.Cdl Action=1
B.Cdl Action=2
C.Cdl Action=4
D.Cdl Action=3
答案
参考答案:B
解析: 为了弹出某个对话框,除使用通用对话框的方法外,还可以通过给通用对话框的 Action属性赋值来实现,给Action属性赋不同的值将弹出不同的对话框。若给Action属性赋值为2,运行时将弹出“另存为”对话框。