Enum Names
Well, the enum groupname would be the way of resolving this. In
microsoft.NET you can reveal the name of the enum from the value within it.
"Bob Phillips" wrote in message
...
I don't believe that you can. Enum is used to declare a type for
enumeration, so you can declare a data type of that enumeration, or you
can
use any of the member names within your code, but you can't go the other
way. You may have many such types, all with a member value of 2, so which
would it return.
--
HTH
Bob Phillips
(replace somewhere in email address with gmail if mailing direct)
"Goofy" wrote in message
...
how can I retreive the string value of the enum internal identifier, in
other words if I have a value of 2 I want the corresponding "secondKey"
Public Enum MyEnum
firstKey = 1
secondKey = 2
End Enum
|