
在VB中如何调用子程序啊?
例如,PublicSubmax(aAsInteger,bAsInteger)Dimtt=IIf(a>b,a,b)EndSubPrivateSubValue_Change(...
例如,Public Sub max(a As Integer, b As Integer)
Dim t
t = IIf(a > b, a, b)
End Sub
Private Sub Value_Change(x As Integer, ByVal y As Integer)
Dim x, y, z, c, d, e
x = InputBox("x:")
y = InputBox("Y")
z = InputBox("z")
c = max(x, y)
d = max(c, z)
Print "max is d="; d
End Sub
高手帮忙看看有什么问题啊 展开
Dim t
t = IIf(a > b, a, b)
End Sub
Private Sub Value_Change(x As Integer, ByVal y As Integer)
Dim x, y, z, c, d, e
x = InputBox("x:")
y = InputBox("Y")
z = InputBox("z")
c = max(x, y)
d = max(c, z)
Print "max is d="; d
End Sub
高手帮忙看看有什么问题啊 展开
1个回答
展开全部
Private Function max(a As Integer, b As Integer) as integer
max= IIf(a > b, a, b)
End Sub
max= IIf(a > b, a, b)
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询