G
Gerard Stafleu
I have a project with the following module:
Module mdlDeclarations
Public Enum getMethod
gmFirst
gmLast
End Enum
End Module
and the following class:
Public Class clsTest
Public Function xyz(ByVal a As getMethod) ' Error
End Function
End Class
I made this class simply with Project|Add Class.
I get an error for argument a of the function xyz:
'a' cannot expose a Friend type outside of the Public
class 'clsTest'.
When I put clsTest inside a module it works fine:
Module mdlTest
Public Class clsTest
Public Function xyz(ByVal a As getMethod) ' No error!
End Function
End Class
End Module
Any ideas what is going on?
Module mdlDeclarations
Public Enum getMethod
gmFirst
gmLast
End Enum
End Module
and the following class:
Public Class clsTest
Public Function xyz(ByVal a As getMethod) ' Error
End Function
End Class
I made this class simply with Project|Add Class.
I get an error for argument a of the function xyz:
'a' cannot expose a Friend type outside of the Public
class 'clsTest'.
When I put clsTest inside a module it works fine:
Module mdlTest
Public Class clsTest
Public Function xyz(ByVal a As getMethod) ' No error!
End Function
End Class
End Module
Any ideas what is going on?