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

Defining Subsets

P: n/a
I'd like to define a set of enums that must be a subset of other enums. Something like this:

Public Enum AllErrorNumbers As Integer
Error1 = 1
Error2 = 2
Error3 = 3
End Enum
Public Enum ErrorsForThisScreen As AllErrorNumbers
Error1 = 1
Error2 = 2
End Enum

Does anything in VB come close?

Thanks

Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
"Chad" <ch**************@unisys.com> schrieb:
I'd like to define a set of enums that must be a subset of other enums.
Something like this:

Public Enum AllErrorNumbers As Integer
Error1 = 1
Error2 = 2
Error3 = 3
End Enum
Public Enum ErrorsForThisScreen As AllErrorNumbers
Error1 = 1
Error2 = 2
End Enum

Does anything in VB come close?

\\\
Public Enum AllErrorNumbers
Error1 = 1
Error2 = 2
Error3 = 3
End Enum

Public Enum ErrorsForThisScreen
Error1 = AllErrorNumbers.Error1
Error2 = AllErrorNumbers.Error2
End Enum
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.