Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2004
    Posts
    77

    Unanswered: select case problem

    juz wanna ask whether i can use the Or operator in a select case statement?

    e.g. select case PolicyID
    case 1 or 10
    ....
    case else
    ....
    end select

  2. #2
    Join Date
    Oct 2003
    Location
    Ger
    Posts
    1,969
    Provided Answers: 1
    I think you can not use Or but you can use

    Case 1 TO 4

    which results in true for the values 1, 2, 3 and 4

    Or use
    PHP Code:
      Case 1
          
    .....

      Case 
    4
          
    .... 

  3. #3
    Join Date
    Mar 2004
    Posts
    77
    ok. thx for the quick reply.

Posting Permissions

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