I have this enum:
Public Enum Letters As Byte
a = 1
b = 2
c = 3
End Enum
dim mbyte as byte = 2
how do i get the name associated with mbyte?
thanks...
Printable View
I have this enum:
Public Enum Letters As Byte
a = 1
b = 2
c = 3
End Enum
dim mbyte as byte = 2
how do i get the name associated with mbyte?
thanks...
Try (place after the your code):
Code:Dim mletter As Letters = CType(mbyte, Letters)
MsgBox(mletter.ToString)