How do I add an enumeration to an array
Posted on 2011-03-03
I have the following enumeration:
I add the enumartion to an array
Dim enumValues As Array = System.[Enum].GetValues(GetType(Enumirations.Stores))
The problem is that it need it to add into the array by order of the name of the enumaration but instead it orders it by value. So the above example would be (5,6,14) but I need to stay in the same order as it is listed in the enumeration.