单选题
VB
题号 #2539236
以下关于MsgBox 的叙述中,错误的是( )。
参考答案
D
答案解析
MsgBox 函数的格式为:MsgBox(msg[,type][,title][,helpfile ,context])。该函数有5个参数,除第二个参数外,其余参数都是可选的。msg 是一个字符串,该字符串的内容将在由MsgBox 函数产生的对话框内显示。type 是一个整数值或符号常量,用来控制在对话框内显示的按钮、图标的种类及数量。该参数的值由4类数值相加产生,这4类数值或符号常量分别表示按钮的类型、显示图标的种类、活动按钮的位置及强制返回。title 是一个字符串,用来显示对话框的标题。helpfile ,context :helpfile 是一个字符串变量或字符串表达式,用来表示帮助文件的名字;context 是一个数值变量或表达式,用来表示相关帮助主题的帮助目录号。MsgBox 函数也可以写成语句形式,即:MsgBoxMsg$[,type %][,title$][,helpfile ,context],各参数的含义及作用与MsgBox 函数相同,由于MsgBox 语句没有返回值,因而常用于较简单的信息显示。
你可能感兴趣的试题
A.Label1.BackStyle =0
Label1.BorderStyle =0
Label1.BorderStyle =0
B.Label1.BackStyle =1
Label1.BorderStyle =1
Label1.BorderStyle =1
C.Label1.BackStyle =True
Label1.BorderStyle =True
Label1.BorderStyle =True
D.Label1.BackStyle =False
Label1.BorderStyle =False
Label1.BorderStyle =False
A.Menu1.Enabled =True
B.Menu1.Enabled =False
C.Menu1.Visi ble =True
D.Menu1.Visi ble =False