Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21090

if then statement with the value of a label caption between 0-100?

$
0
0
Hello there! I am working on a small prog where the prog looks at the value of a label caption.

What I would like it to do, is if the statement is true show a msgbox, but I can't figure out how to code 0-100.

I have Val(PointCountLBL(0).Caption) <= 100 which lets it work when numbers are below 100, but I would like it to be equal to 0 or above 0,

Is there a way to make an if statement like this?

if Val(PointCountLBL(0).Caption) <= 100 and >=0 then
msgbox "hi"
end if

??

Thanks a lot!!

Viewing all articles
Browse latest Browse all 21090

Trending Articles



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