|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Viewing enum values in a specific order?Is it possible to view enum values in the order that I have defined them?
Public Enum Size Small Medium Large Biggest End Enum I love Enums because they make my life easier, but, because they are alphabetized, it seems easier to make a mistake and pick the wrong one. When I assign a value from this enumeration, I think "I'll pick the last one because that's the biggest", but the I have to do a double-take and search within the list because they have been alphabetized. Is there a way to preserve the original list order? AFAIK, no.
-- Show quoteHide quoteBest regards, Carlos J. Quintero MZ-Tools: Productivity add-ins for Visual Studio You can code, design and document much faster: http://www.mztools.com "mrmagoo" <-> escribió en el mensaje news:%23oKuZl4UGHA.6084@TK2MSFTNGP14.phx.gbl... > Is it possible to view enum values in the order that I have defined them? > > Public Enum Size > Small > Medium > Large > Biggest > End Enum > > I love Enums because they make my life easier, but, because they are > alphabetized, it seems easier to make a mistake and pick the wrong one. > When > I assign a value from this enumeration, I think "I'll pick the last one > because that's the biggest", but the I have to do a double-take and search > within the list because they have been alphabetized. > > Is there a way to preserve the original list order? > > >
Problem using the shell function in a service.
How to know the Calling Object ? Update Access data How do I properly exit... Selected a USB flash drive by default System Volume Information REPOST: preventing more than one user from working on the same record Calendar with custom tooltip over days with events VB.NET error Locked Control |
|||||||||||||||||||||||