Do Loop


Results 1 to 14 of 14

Thread: Do Loop

Threaded View

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


    Did you find this post helpful? Yes | No

    Default Re: Do Loop

    Code:
            WHILE DoorOpen : WEND
            '
            '       or
            Repeat : Until !DoorOpen
            '
            '       or        
    SitAndSpin:  If DoorOpen then SitAndSpin
            '
            '       or        
            Do Until !DoorOpen : Loop
            '
            '       or        
            do : Loop WHILE DoorOpen
    As far as I'm aware of, PBP take care of the WatchDog timer, so it shouldn't be an issue...
    Last edited by mister_e; - 16th December 2012 at 09:01.
    Steve

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

Similar Threads

  1. FOR..NEXT Loop Bug?
    By MSapper in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 12th April 2011, 01:04
  2. if ... then loop
    By lerameur in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 9th November 2010, 23:08
  3. Can't get ADC to loop
    By TravisM in forum mel PIC BASIC
    Replies: 2
    Last Post: - 11th October 2009, 15:33
  4. Help with loop
    By wildbilly in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 2nd January 2007, 16:59
  5. While LOOP
    By actionplus in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 5th March 2004, 14:59

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