Read this article in your language IT | EN | DE | ES
Public Enum CCid
A = 3
D = 6
End Enum
'Get Name
Dim s As String = [Enum].GetName(GetType(CCid), 3)
'Get Value
Dim v As Integer = [Enum].Parse(GetType(CCid), "A")However, I do it this way. Where I actually use the Enum Type and check to see if it exists first.
3e04e8f3-d858-4a76-9c6b-630a8b9d3bcf|1|5.0
VB.NET, Code Snippets
vb.net, code snippets