Help needed on Select Case 
Author Message
 Help needed on Select Case

I cannot get the following to work:

Select Case iVariable
    Case >1
        response.write "Greater than 1"
    Case 1
        response.write "Equal to 1"
end Select
 The problem is with the Case >1; syntax error.
What is my mistake here?

Thank you.



Wed, 22 Jan 2003 03:00:00 GMT  
 Help needed on Select Case

Select Case True
    Case (iVariable > 1)
        response.write "Greater than 1"
    Case (iVariable = 1)
        response.write "Equal to 1"
end Select

--
Michael Harris
Microsoft MVP - Scripting


Quote:
> I cannot get the following to work:

> Select Case iVariable
>     Case >1
>         response.write "Greater than 1"
>     Case 1
>         response.write "Equal to 1"
> end Select
>  The problem is with the Case >1; syntax error.
> What is my mistake here?

> Thank you.



Thu, 23 Jan 2003 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. VBScript Select Case vs VB Select Case

2. Need string help in a select case function

3. Need help on passing variables to a Select case procedure

4. select case help needed

5. "select...case", multiples cases not possible ?

6. Select Case and Case 0 To 9

7. Help with Select Case...again

8. Select Case Statement Help

9. Select case help (PLEASE!)

10. Help! Trying to run a Select Case

11. help with select case

12. listviews / multiple forms / select case - HELP!!

 

 
Powered by phpBB® Forum Software