Difference between Case Not 6 and Case Is <> 6 ???
What is the difference between Case Not 6 and Case Is <> 6 ??? Or am I useing incorect syntax?
(Objective: if index is not equal to 6)
Quote:
This code works
VB Code:
Public Sub HideSortTech(ByVal Index As Integer)
Select Case Index
Case Is <> 6
'code
End Select
End Sub
but
Quote:
This code dosen't work
VB Code:
Public Sub HideSortTech(ByVal Index As Integer)
Select Case Index
Case Not 6
'code
End Select
End Sub
Re: Difference between Case Not 6 and Case Is <> 6 ???
Not is a bitwise operator.
Not 6 = -7