I have the following code. Can I cast the strEnum from string to variable, so that I can get the value from Enum RptHierachy? And how?
Enum RptHierachy As Integer
ProductFamily = 65
Products = 91
Projects = 129
EngFunction = 172
EngTask = 213
End Enum
Sub sGetLabels(ByVal strDrilldownType As String)
Dim strEnum = "RptHierachy." & strDrilldownType
Dim intHierachy as integer =
End Sub
Thanks.
DanYeung
Enum RptHierachy As Integer
ProductFamily = 65
Products = 91
Projects = 129
EngFunction = 172
EngTask = 213
End Enum
Sub sGetLabels(ByVal strDrilldownType As String)
Dim strEnum = "RptHierachy." & strDrilldownType
Dim intHierachy as integer =
End Sub
Thanks.
DanYeung