Re: Enum Names
- From: "Bob Phillips" <bob.NGs@xxxxxxxxxxxxx>
- Date: Tue, 31 Oct 2006 13:00:11 -0000
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" <me@xxxxxxxx> wrote in message
news:ueFqOiO$GHA.4544@xxxxxxxxxxxxxxxxxxxxxxx
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
.
- References:
- Enum Names
- From: Goofy
- Enum Names
- Prev by Date: Re: Print Variables ?
- Next by Date: Re: Open but not activate
- Previous by thread: Enum Names
- Next by thread: How to Create a macro from drop down list (Validation List) in excel
- Index(es):
Relevant Pages
|