writing out items in an enumeration

  • Thread starter Thread starter Brian Henry
  • Start date Start date
B

Brian Henry

Is there anyway to print a list of all the items in a given enumeration? I
want to make a list of SQL data types which are already in data.sqldbtype,
but I cant think of how to get that list to print out? im just doing a
console.writeline type of printing here. thanks!
 
nevermind, having a dumb day...
For Each s As String In [Enum].GetNames(GetType(Data.SqlDbType))

Console.WriteLine(s)

Next
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top