Question regarding enum type creation
I need to create an enumerated type so that I will have a consistent set of constants to use while coding my login routine for a windows form application. I have a class called loginclass. I created the enum type with in that loginclass. Also in that loginclass I have a method that performs the authentication for this windows form app. So lets say I call CheckLogin() within the loginclass and I want to return one of the enum types which is basically authenticated - 0 , notauthenticated - 1 , databaseconnectionerror - 2. Do I have to create a new instance just to get to these enums or should these enums reside in another structure? In VB6 I would put this into a public declaration of one of my Modules.
Thanks in Advance
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

spatterson20 reputationPosted Feb 23, 2004, 2:20 PM EST
andrewRank #6,347 · 269 reputationPosted Feb 24, 2004, 3:46 PM EST