全部题库 / Access / 试题详情
单选题 Access
2008-03-19

在窗体中添加一个命令按钮(名称为Command1),然后编写如下代码: 
    Public  x  as  integer 
    Private  Sub  Command1_Click( ) 
      a=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

参考答案

B

答案解析

暂无解析