If Then Range


Closed Thread
Results 1 to 12 of 12

Thread: If Then Range

Hybrid View

  1. #1
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382


    Did you find this post helpful? Yes | No

    Default

    I did try your second example prior to posting. What I found was it includes everything leading up to 8. I think this has to do with the second condition in the statement. It was very odd to see.

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Code:
    If (x > 4) And (x < 9) Then
    [do something code here]
    Endif
    should fix it
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382


    Did you find this post helpful? Yes | No

    Default

    I will give it a try and see how it effects my code size.

    Thanks for all the help so far

Similar Threads

  1. Expanding Timer1 counting range
    By sycluap in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 3rd February 2014, 22:00
  2. using a pot to control a time range
    By glkosec in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 17th June 2008, 19:59
  3. Long range communication
    By Christopher4187 in forum Off Topic
    Replies: 10
    Last Post: - 6th February 2008, 16:12
  4. Sharp GP2D12 Range Finder???
    By Gixxer in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 13th December 2007, 09:21
  5. HPWM frequency range
    By jcsquire in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 16th June 2006, 02:11

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts