某语法问题,很怪,帮忙瞧下。
这个是我在类模块里定义的一个函数
Public Function CentoLevel(ByVal strDev As String, ByRef DateAggresgate() As TypeCentoLevel) As Recordset
End Function
那个TypeCentoLevel是我在一个模块里自己定义的public类型,我要是把ByRef DateAggresgate() As TypeCentoLevel去掉或者把前面改成private就可以进行下去了。但是我定义的这个函数是需要由外部来调用的,不可能改成私有或者少个参数也不行呀。
我还没有编写里面的代码,但是就是这样我在全编译的时候就出现一个错误:
compile error:
only public user defined types defined in public object modules can be used as parameters or reture types for public procedures of class modules or as fields of public user defined types.
我的英文不太好,这段话的意思是不是说,只有在共有的对象模块里定义的共有的用户自定义类型可以被用做参数或者类模块的共有的过程的返回值类型或共有的用户自定义类型的共有字段?
我觉得这段话对我的程序没什么影响啊。