Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27184

VS 2010 In between numbers. Help.

$
0
0
Code:

    Select Case CInt(TextBox1.Text)
            Case Is < 20
                MsgBox("test1")
            Case Is >= 20 <= 40
                MsgBox("test2")
            Case Is >= 40 <= 60
                MsgBox("test3")

        End Select

So i have this... but it doesnt seem to work at test3.

Any ideas? I've tried if statements as well...

I am trying to get an output every time a number is in between so. greater than 20 but less than 40.

Viewing all articles
Browse latest Browse all 27184

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>