Chapter 16. Enumerations
In this chapter: |
---|
Introduction to Enumerations
Enumerations, usually called Enums (not to be confused with lists or collections), are primarily meant to make life easier for programmers. Using Enums, you can define and group constant values by name. At the same time, you can restrict the values to that specific set of names and values. Suppose that you have created a small contact management application that lets you categorize your contacts. You can define a contact as a client, a friend, a business colleague, or as part of some other group. ...
Get Microsoft® Visual Basic® 2010 Developer’s Handbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.