1
尽管在旧的代码工作走我碰到的东西来像这样: -什么是VB6函数的默认返回值?
Public Function MyFunc (some parameters) As Single
If some condition Then
MyFunc = calculate some value
Else
MyFunc = MyFunc
End If
End Function
,我很希望来规范该测试的第二站;如果some condition
是false
,我会假设返回值为0.0
吗?
正确;感谢那。 – 2012-01-04 13:53:28
“没有指定类型”是Variant类型的隐式指定。 – Bob77 2012-01-04 19:09:42