How can I cycle through an Enum list?
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