Enum Names



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


.



Relevant Pages

  • Re: Enum Names
    ... As Bob says, these do not really exist in compiled code, as they have been ... as long as you enum is compiled before your array elements are assigned. ... other words if I have a value of 2 I want the corresponding "secondKey" ...
    (microsoft.public.excel.programming)
  • Re: Enum Names
    ... You can link the enum values to an arry of string though ... as long as you enum is compiled before your array elements are assigned. ... other words if I have a value of 2 I want the corresponding "secondKey" ...
    (microsoft.public.excel.programming)
  • Re: Enum Names
    ... enumeration, so you can declare a data type of that enumeration, or you can ... other words if I have a value of 2 I want the corresponding "secondKey" ... Public Enum MyEnum ...
    (microsoft.public.excel.programming)
  • Re: Enum Names
    ... the enum groupname would be the way of resolving this. ... enumeration, so you can declare a data type of that enumeration, or you ... use any of the member names within your code, but you can't go the other ... other words if I have a value of 2 I want the corresponding "secondKey" ...
    (microsoft.public.excel.programming)
  • Re: enums: What the H? again
    ... > find no sign of it in the Enum class until I did a decompile and saw ... > private String shortName; ... > private static InDir currentState = UNKNOWN; ...
    (comp.lang.java.programmer)