By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,326 Members | 881 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,326 IT Pros & Developers. It's quick & easy.

Problem returning an enumerated type from a property

P: n/a
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
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.