Public Function fmax(aAs Integer, b As Integer, c As Integer)
Dim t As Integer
If a > b Then
t = a
Else
t = b
End If
If t > c Then
fmax = c
End If
End Function
Private SubForm_click()
Dim a As Integer
Dim b As Integer
Dim c As Integer
Dim max As Integer
a = 1
b = 2
c = 3
max = fmax(a, b, c)
Print max
End Sub
理想中的结果是单击后显示为3怎么结果是0
怎么点击后出现fmax不可选