I needed to create a function in Vb.Net to which I pass an integer and return the string part
I have the following enumerator:
Public Enum TipoAplicaEnum
Ingreso = 1
Egreso = 2
Otro = 3
End Enum
Example:
Dim strNombreEnum = ObtenerNombreTipoAplicaEnum(2)
‘strNombreEnum = “Egreso”
Public Function ObtenerNombreTipoAplicaEnum (ByVal intIndex)
‘ CODIGO NESESARIO
Return “Egreso”
End Fuction
You can use CType to cast
or more explicit