spatterson

spatterson

  • NA
  • 12
  • 0

Question regarding enum type creation

Feb 23 2004 5:31 PM
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)