Thread: Using Enum Type
View Single Post
  #2 (permalink)  
Old June 4th, 2003, 06:10 PM
NotNowJohn NotNowJohn is offline
Friend of Wrox
 
Join Date: Jun 2003
Location: Wien, Wien, Austria.
Posts: 158
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to NotNowJohn
Default

You can use only ToString() method to display Enum value instaed of integer. Some example:

Public Enum GenderType
      Male = 0
      Female = 1
End Enum

Dim gt As GenderType
gt=1
Console.WriteLine(gt.ToString())

On console will be displayed Female

HTH.

Reg,
NotNowJohn

...but the Soon is eclipsed by the Moon