I am doing a loop through some records. And in that loop, I check the percentage of how many records it has processed using a Select Case statement.for counter = 0 to TotalRecs
Select Case FormatNumber(counter/TotalRecs*100,0)
Case 10
Response.Write "."
Case 20
Response.Write "."
Case ...
...
End Select
next
Now I want each Case execute depending on the range. So if the percentage is less than 10, execute that case. But somehow how I can't get a range using the select statement. I have tried the following variations but it won't work, just gives me an error:Case 1 To 10
Response.Write "."
Case 11 To 20
Response.Write "."
....
Case Is < 10
Response.Write "."
Case Is < 20
Response.Write "."
...
The only thing that works is this:Case 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
Response.Write "."
Case 11, 12, 13, 14, 15, 16, 17, 18, 19, 20
Response.Write "."
...
Anyone know if it is possible to do a range using the select statement?
«------------------------------------------------------»
Want to know when the next version comes out,
as soon as possible? Join our Mailing Lists !