|
-
Oct 2nd, 2012, 08:59 PM
#1
Thread Starter
Member
[RESOLVED] How to reference common enum in several classes
I have several classes each of which I want to have as a property the same enum, for example:
Public Enum Status As Integer
Unchanged
Changed
Created
Deleted
End Enum
I put the above in a module. but when I try to reference Status in a class, like
property Mystatus() as Status
I get the error message "Error 1 'Mystatus' cannot expose type 'stringsubs.RowStatus' outside the project through class 'invoice'. C:\Users\franceint\Documents\Visual Studio 2010\Projects\A3Main\invoice.vb 18 35 A3Main
I can put the enum in each class but that doesn't seem like good programming practice as maintenance becomes an issue if the enum has to change. So how do I define this property in my classes?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|