Public Function getCount() As Collection
Dim reports As New Collection
getCount = reports
End Function
...全文
1223打赏收藏
简单排错,“参数不可选”,里面有三行代码,跟上鬼了,大家帮忙看一下!
一个类中有如下一个函数,编译不能通过,说什么参数 不可选,如果Collection换成integer就可以,why?? Public Function getCount() As Collection Dim reports As New Collection getCount = reports End Function