M
Mike Edgewood
I want to compare types in a case statement.
ie.
Select Case dr(i).GetType
Case System.Double
' Double action here
Case System.Date
' Date Action Here
End Case
If dr(i).GetType is GetType(System.Double) Then...
... works fine here, but put it in a case statement and wavy
underlines appear.
Cannot seem to understand the correct systax for the case statement
usage in this scenario. Is this doable in a case statement? I'm
probably overlooking something simple, but just can't see it.
ie.
Select Case dr(i).GetType
Case System.Double
' Double action here
Case System.Date
' Date Action Here
End Case
If dr(i).GetType is GetType(System.Double) Then...
... works fine here, but put it in a case statement and wavy
underlines appear.
Cannot seem to understand the correct systax for the case statement
usage in this scenario. Is this doable in a case statement? I'm
probably overlooking something simple, but just can't see it.