问题详情

答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关

在窗体中添加命令按钮cmd 并编写如下程序:Funtion panduan(x As Integer y As Integer) As Integ


在窗体中添加命令按钮cmd,并编写如下程序:

Funtion panduan(x As Integer,y As Integer) As Integer

panduan=IIF(x>y,x,y)

End Function

Private Sub cmd_click()

Dim a As Integer,b As Integer

a=4

b=7

MsgBox panduan(a, b)

End Sub

打开窗体单击命令按钮,消息框中输出的结果为【 】。

请帮忙给出正确答案和分析,谢谢!

参考答案
您可能感兴趣的试题