B
Bob Day
Why do the if/then and Select Case statements below results in different
outcomes?
Bob Day
Dim Test_Object As Object = 0
If Not (Test_Object Is Nothing) Then
' this considers Test_Object <> Nothing
Stop
End If
Select Case Test_Object
Case Is <> Nothing
' this considers Test_Object = Nothing
Stop
End Select
outcomes?
Bob Day
Dim Test_Object As Object = 0
If Not (Test_Object Is Nothing) Then
' this considers Test_Object <> Nothing
Stop
End If
Select Case Test_Object
Case Is <> Nothing
' this considers Test_Object = Nothing
Stop
End Select