For example:
Enum parameter1Choices
choice1
choice2
End Enum
Function sampleFunction(parameter1 as parameter1Choices)
return parameter1
End Function
So if I use the above function like this
sampleFunction(parameter1Choices.choice1)
I am expecting that it will return choice1
as string
I've read this and it says that I should use Enum.GetName
, some said .ToString
. How do I use that?