select case syntax

Discussion in 'Basic4ppc Wishlist' started by tremara1, Oct 27, 2008.

  1. tremara1

    tremara1 Active Member Licensed User

    I would like to use a select case to to find a value in several ranges ie
    from 0 to 5 from 6 to 12 and so on. I have tried many combinations but I am not sure of the syntax I need in each case. I know this is going to be simple but I am really stumped...Thanks:sign0161:
     
  2. klaus

    klaus Expert Licensed User

    From what I know, the only way is this one:
    Code:
    Select var
    Case 0,1,2,3,4,5
    Case 6,7,8,9,10
    End Select
    In Visual Basic it is possible with
    Code:
    Select Case var
    Case 0 To 5
    Case 6 To 10
    End Select
    Erel, couldn't this be an intersting feature ?

    Best regards.
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    Yes. Maybe it will be added in a future version.
     
  4. tremara1

    tremara1 Active Member Licensed User

    thanks

    Thanks for your help its great to be part of a team that helps each other...
     
  5. moster67

    moster67 Expert Licensed User

    I also would like to see this implemented.

    Rgds,
    moster67

     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice