Regarding WHILE...WEND


Results 1 to 9 of 9

Threaded View

  1. #5
    Join Date
    May 2006
    Location
    Del Rio, TX, USA
    Posts
    343


    Did you find this post helpful? Yes | No

    Default

    Code:
    WHILE number < 3000
     number = number + 1
    WEND
    Code:
    REPEAT
     number = number + 1
    UNTIL number = 3000
    If you entered each above code sections with number < 3000, these two conditional loops would operate identically, and number would be incremented until number = 3000.

    BUT, if you entered with number > 2999 Then...
    - The WHILE..WEND would not execute, and number would remain the same.
    - The REPEAT..UNTIL loop would execute 1 time, and number would be incremented by 1.

    HTH,
    SteveB
    Last edited by SteveB; - 7th September 2008 at 06:50. Reason: Amplifacation of first sentence.

Similar Threads

  1. Can't read sequential addresses in external EEPROM
    By tjkelly in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th February 2010, 15:46
  2. HSEROUT and Commas, What? Help Me Understand
    By altech6983 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 20th July 2009, 20:12
  3. LOTS of questions....
    By reaper0995 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd March 2008, 18:00
  4. While Wend
    By DJEE in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 8th July 2007, 09:34
  5. Pulsin versus While Wend
    By Toley00 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 7th March 2006, 21:08

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