TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
joy.simpson
NA
228
0
How can I cycle through an Enum list?
Nov 25 2003 3:09 PM
This is as far as I got. I can only display one at a time. What I want to do is display each of the values in the Enum list in a loop. Can I use a For Each loop to do this? I tried it and it wouldn't work. Please help. (After I get it to work, I will also need to do it in C# - It's for a class demo.) Public Enum dressize petite = 4 small = 8 medium = 12 large = 16 extralarge = 20 End Enum Module Module1 Sub Main() Dim mysize As dressize = dressize.medium Console.WriteLine("Size {0} is {1}", dressize.large, CInt(dressize.large)) Console.WriteLine("My size is {0} - {1}", CInt(mysize), mysize) Console.WriteLine() End Sub End Module
Reply
Answers (
2
)
Management console for Active Directory in .Net C#
How can I cycle through an enum list?