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)
This code works
VB Code:
  1. Public Sub HideSortTech(ByVal Index As Integer)
  2. Select Case Index
  3.     Case Is <> 6
  4.          'code
  5. End Select
  6. End Sub
but
This code dosen't work
VB Code:
  1. Public Sub HideSortTech(ByVal Index As Integer)
  2. Select Case Index
  3.     Case Not 6
  4.          'code
  5. End Select
  6. End Sub