behavior of select case .net 2005
Posted on 2006-11-22
Can someone explain to me why this select case statement does not have to evaluate all the conditions when I insert a breakpoint and step through it?
It will just jump right to the exact one it evaluates as true even if its the last one.
If I change the select statement to be something like this it will stop at each case expressionlist
Or if I change it to strings it will stop at each case expressionlist
A link would be great!
Dim x As Integer
x = 25
Select Case x
Case 1 To 10
Case 11 To 20
Case 21 To 30