B
BobRoyAce
I have a module that defines, among other things, an Enum:
--- MODULE CODE BEGINS ---
Namespace OMEGA.GRP
Module Globals
...
Public Enum FileProcessingStatus
None
Processing = 1
Completed = 2
Failed = 3
End Enum
...
End Module
End Namespace
--- MODULE CODE ENDS ---
Then, in a class module file, I have:
--- CLASS CODE BEGINS ---
Public Class clsFileProcessor
...
Private _ProcessingStatus As FileProcessingStatus
...
Public ReadOnly Property ProcessingStatus() As FileProcessingStatus
Get
Return _ProcessingStatus
End Get
End Property
...
End Class
--- CLASS CODE ENDS ---
This will not compile...get error message:
'ProcessingResult' cannot expose type
'OMEGA.GRP.Globals.FileProcessingStatus' outside the project through
class 'clsInputfeedFileProcessor'. C:\...\Classes
\clsInputfeedFileProcessor.vb
I have only a single project within the solution. I addition, when I
remove the Namespace declaration in the first quoted module, the error
message still occurs.
What am I doing wrong here and how do I fix it? The bottom line is
that I would like to define some global Enums that can be used
throughout the various forms and classes of the application.
--- MODULE CODE BEGINS ---
Namespace OMEGA.GRP
Module Globals
...
Public Enum FileProcessingStatus
None
Processing = 1
Completed = 2
Failed = 3
End Enum
...
End Module
End Namespace
--- MODULE CODE ENDS ---
Then, in a class module file, I have:
--- CLASS CODE BEGINS ---
Public Class clsFileProcessor
...
Private _ProcessingStatus As FileProcessingStatus
...
Public ReadOnly Property ProcessingStatus() As FileProcessingStatus
Get
Return _ProcessingStatus
End Get
End Property
...
End Class
--- CLASS CODE ENDS ---
This will not compile...get error message:
'ProcessingResult' cannot expose type
'OMEGA.GRP.Globals.FileProcessingStatus' outside the project through
class 'clsInputfeedFileProcessor'. C:\...\Classes
\clsInputfeedFileProcessor.vb
I have only a single project within the solution. I addition, when I
remove the Namespace declaration in the first quoted module, the error
message still occurs.
What am I doing wrong here and how do I fix it? The bottom line is
that I would like to define some global Enums that can be used
throughout the various forms and classes of the application.