Hi Terry,
Enumerations are basically Integer type, so all you need to do is to cast the enumeration to Integer, see this pseudo code:
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
Dim bEnum As PayTypes = PayTypes.Cash
MessageBox.Show("My Enum value = " + CInt(bEnum).ToString)
End Sub
Public Enum PayTypes As Integer
Cash = 1
Check = 2
Other = 3
End Enum
As for the MicroFour.StrataFrame.Tools.Comon.GetEnumDisplayValue(bEnum), it is a very nice method that will display a custom
display value used in the EnumDisplayValue attribute when creating the enum like this:
Public Enum PayTypes As Integer
<EnumDisplayValue("Cash Payment")>
Cash = 1
<EnumDisplayValue("Check Payment")>
Check = 2
<EnumDisplayValue("Other Type of Payment")>
Other = 3
End Enum
The EnumDisplayValue attribute will require you to Import the MicroFour.StrataFrame.Tools class and also give control
of being able to display values with spaces in your enumerations, very nice and useful feature.