更多"在窗体中添加一个名称为Command1的命令按钮,然后编写如下程序: "的相关试题:
[单项选择]在窗体中添加一个命令按钮(名为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
[填空题]在窗体中添加一个命令按钮(名称为Command1),然后编写如下代码:
Public x as integer
Private Sub Command1_Click( )
x=5
Call s1
Call s2
MsgBox x
End Sub
Private Sub s1( )
x=x+10
End Sub
Private Sub s2( )
Dim x as integer
x=x+10
End Sub
窗体打开运行后,单击命令按钮,则消息框的输出结果是 (15) 。
[单项选择]在窗体中添加一个名称为Command1的命令按钮,然后编写如下程序:
Public x As Integer
Private Sub Commandl Click( )
x=10
Call sl
Call s2
MsgBox x
End Sub
Private Sub sl( )
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
[单项选择]在窗体中添加一个名称为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
[单项选择]在窗体中添加一个名称为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
[单项选择]在窗体中添加一个名称为Command1的命令按钮,然后编写如下程序:
Public x As integer
Private Sub Command1_Click( )
x=10
Call s1
Call s2
MsgBox s
End Sub
Private Sub s1( )
x=s+20
End Sub
Private Sub s2( )
Dim x As integer
x=x+20
End Sub
窗体打开运行后,单击命令按钮,则消息框的输出结果为
A. 10
B. 30
C. 40
D. 50
[单项选择]在窗体中添加一个名称为Command1的命令按钮,然后编写如下程序。
Public x As Inteqer
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 Inteqer
x=x+20
End Sub
窗体打开运行后,单击命令按钮,则消息框的输出结果为( )。
A. 10
B. 30
C. 40
D. 50