2
Answers

Question regarding enum type creation

spatterson

spatterson

20y
2.5k
1
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
Answers (2)
Next Recommended Forum