Results 1 to 3 of 3

Thread: [RESOLVED] See if number falls between 2 other numbers

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2005
    Location
    North Carolina
    Posts
    52

    Resolved [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

  2. #2
    Member
    Join Date
    Dec 2004
    Posts
    54

    Re: See if number falls between 2 other numbers

    VB Code:
    1. if SigStr > 56 andalso SigStr < 60 Then
    2. 'Do magic
    3. End if

    Something like this?

  3. #3

    Thread Starter
    Member
    Join Date
    Dec 2005
    Location
    North Carolina
    Posts
    52

    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
  •  



Click Here to Expand Forum to Full Width