在窗体上画一个命令按钮,其名称为Command1,然后编写如下程序: Function M(x As Integer,y As Integer) As Integer M=IIf(x>y,x,y) End Function Private Sub command1 Click() Dim a As Integer,b AS Integer a=100 b=200 Print M(a,b) End
主观题
在窗体上画一个命令按钮,其名称为Command1,然后编写如下程序: Function M(x As Integer,y As Integer) As Integer M=IIf(x>y,x,y) End Function Private Sub command1 Click() Dim a As Integer,b AS Integer a=100 b=200 Print M(a,b) End