题目内容:
在窗体中添加一个名称为Command1的命令按钮,然后编写如下程序:Public x As Integer
Private Sub Command1_Click()
x=10
Call s1
Call s2
MsgBox x
End Sub
Private Sub s1()
x=x+20
End Sub
Private Sub s2()
Dim x As Integer
x=x+20
End Sub
窗体打开运行后,单击命令按钮,则消息框的输出结果为 A.10
B.30
C.40
D.50
参考答案:
答案解析: