[RESOLVED] See if number falls between 2 other numbers
Ok I feel silly becaause I feel like it should be easy but I cant find it in the forum or VB help
Dim SigStr as Integer
If SigStr = 56 - 60 Then
"Some Code"
I want to see if the SigStr varaible falls between the two integers I have defined but this is not working. I have tried everything I can.
Please help
Thanx,
MoLaw
Re: See if number falls between 2 other numbers
VB Code:
if SigStr > 56 andalso SigStr < 60 Then
'Do magic
End if
Something like this?
Re: See if number falls between 2 other numbers
Well like I thought simple, I actually tried the greater than less than way using and, I also did not retype the string name so it did not work.
This works Thanx
MoLaw