Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select Case 48 to 57 doesn't work

Status
Not open for further replies.

knovak

Programmer
Dec 18, 2001
17
US
The following block of code does not work in ASP, but works in a regular VB executable just fine. I get the following error message

Expected statement


Case 48 To 57
--------^


Here is the block of code...

While (intR <= 5)
intA = Int(Rnd * 93) + 33
Select Case intA
Case 48 To 57
str = str & Chr(intA)
intR = intR + 1
Case 65 To 90
str = str & Chr(intA)
intR = intR + 1
Case 97 To 122
str = str & Chr(intA)
intR = intR + 1
End Select
Wend

Any ideas why a Case 48 to 57 does not work?

Thanks,

Kyle

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top