M
Mike
I want to test whether an int passed into a method is within various ranges.
In VBScript, this is pretty easy to do with a Select Case:
Select Case (myInt)
Case < 5000: i = 0
Case <10000: i = 10
Case <15000: i = 15
etc
End Select
C# doesn't seem to like this approach. What should I be doing?
Thanks
In VBScript, this is pretty easy to do with a Select Case:
Select Case (myInt)
Case < 5000: i = 0
Case <10000: i = 10
Case <15000: i = 15
etc
End Select
C# doesn't seem to like this approach. What should I be doing?
Thanks