帮我分析下这道题

来源:百度知道 编辑:UC知道 时间:2024/09/24 13:17:48
在窗体上画一个命令按钮,名称Command1,然后编写如下事件过程:
Private Sub Command1_Click()
a$="sofaware and hardware"
b$=Right(a$,8)
c$=Mid(a$,1,8)
MsgBox a$,b$,c$,1
End Sub
运行程序,单击命令按钮,则在弹出的信息框的标题栏中显示的是
(hardware )

MsgBox(prompt[, buttons] [, title] [, helpfile, context])
msgbox a$,b$,c$,1
依次为提示,按钮,标题,帮助文件

MsgBox a$&b$&c$&1

该为这个:

Private Sub Command1_Click()
a$ = "sofaware and hardware"
b$ = Right(a$, 8)
c$ = Mid(a$, 1, 8)
MsgBox (a + "," + b + "," + c)
End Sub