I need to convert a string representation of an enumeration to an actual (Int16) value.
I tried the following but with 'Option Strict On' I got an error so my question is this:
- is there an inbuilt function to do that or so I need to implement a function to do that?
Friend Enum ShowPageImage As Short
None = 0
Header = 1
Footer = 2
Both = 3
Dim MyVal as ShowPageImage = CType("Both", ShowPageImage)