Results 1 to 2 of 2

Thread: Difference between Case Not 6 and Case Is <> 6 ???

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2006
    Posts
    172

    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)
    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

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: Difference between Case Not 6 and Case Is <> 6 ???

    Not is a bitwise operator.

    Not 6 = -7

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width