Hello, I am getting a syntax error
Microsoft VBScript compilation error '800a0400'
Expected statement
line 49
Case 164 To 269
---------------^
(The error references to keyword "To")
Is there anyone know if ASP support the keyword "To"? or it use another keyword to have the case condition in range? I know I can use a comma to form a multi condition, like "Case 164, 165, 166, 167", etc. However, I need a range from 164 to 269 which is alot. Any idea? Thanks.
My code posted as below:
=============== ========
Select Case number
Case 161
result = "a"
Case 162
result = "b"
Case 164 To 269
result = "c"
Case 276 To 314
result = "d"
Case Else
result = "e"
End Select
Microsoft VBScript compilation error '800a0400'
Expected statement
line 49
Case 164 To 269
---------------^
(The error references to keyword "To")
Is there anyone know if ASP support the keyword "To"? or it use another keyword to have the case condition in range? I know I can use a comma to form a multi condition, like "Case 164, 165, 166, 167", etc. However, I need a range from 164 to 269 which is alot. Any idea? Thanks.
My code posted as below:
=============== ========
Select Case number
Case 161
result = "a"
Case 162
result = "b"
Case 164 To 269
result = "c"
Case 276 To 314
result = "d"
Case Else
result = "e"
End Select
Comment