Problem returning an enumerated type from a property

  • Thread starter Thread starter Rob Richardson
  • Start date Start date
R

Rob Richardson

Greetings!

I have a module that contains the following:
Module Globals
Public thePortfolio As clsPortfolio
Public Enum OrderResult
ORDER_FAILED
ORDER_GOOD
ORDER_PENDING
ORDER_CANCELED
End Enum
End Module

I have class that contains the following property:

Property Result() As OrderResult
Get
Return m_result
End Get
Set(ByVal Value As OrderResult)
m_result = Value
End Set
End Property

I am getting an error message saying "'Result' cannot expose a Friend type
outside of the class 'clsOrder'". The help message for the error says that
I should make my type Public. But, as near as I can tell, the type IS
public!

What am I leaving out?

Thanks again!

Rob
 
Rob,
I am getting an error message saying "'Result' cannot expose a Friend type
outside of the class 'clsOrder'". The help message for the error says that
I should make my type Public. But, as near as I can tell, the type IS
public!

What am I leaving out?


The Globals module isn't public by default.



Mattias
 
Back
Top