I've declared a Public enumeration (called MyRole) in a standard module and I can use it without any problems in all my class modules except in an interface module.
I get the following error message "'MyRole' cannot expose type 'GlobalDeclarations.MyRole' outside the project through interface 'MyInterface'". I can get around it by using String or Integer for example but I'd really like to use the enumeration, for obvious reasons.
Is there any way around it?
Public Enum MyRole As Short
Tender = 0
Variation = 1
'---Class X module
Friend ReadOnly Property Role() As String Implements VarIF.MyRole
'---VarIF interface module (that gives an error)
ReadOnly Property Role() As MyRole