|
-
Dec 30th, 2005, 05:33 PM
#1
Thread Starter
Member
[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
-
Dec 30th, 2005, 05:36 PM
#2
Member
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?
-
Dec 30th, 2005, 06:10 PM
#3
Thread Starter
Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|