16,554
社区成员
发帖
与我相关
我的任务
分享
Public Shared Function Z(ByVal a As Single) As Single
Return a * 2
End Function
调用:
Dim S1, S2 As Single
S1 = Class1.Z(1.5)
MsgBox(S1)
S2 = Class1.Z(3.2)
MsgBox(S2)
Public Shared Function FnResult(ByVal a As Single) As Single
Return a * 2
End Function
如1,2楼所说的,调用FnResult方法,并传入参数,就OK了.