Do..Loop and Repeat..until


+ Reply to Thread
Results 1 to 4 of 4

Thread: Do..Loop and Repeat..until1010 days old

  1. #1
    Prolific Poster johngb's Avatar
    Join Date
    Oct 2003
    Posts
    2,167
    Thumbs Up
    Received: 96
    Given: 1
    Total Downloaded
    2.90 GB

    0 Not allowed!

    Default Do..Loop and Repeat..until

    Is there any reason to use Repeat...Until construction now we have the Do.. Loop / Loop While/ Loop Until?
    JohnB

Attention

This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

The advertisements we display are relevant to this web site and your browsing history

Please consider supporting us by disabling your ad blocker.


Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

If you can, please report issues in the forum area WebSite / Forum Issues


Thank you for your attention.

  • #2
    Fanatical Contributor top204's Avatar
    Join Date
    Feb 2002
    Posts
    3,478
    Thumbs Up
    Received: 314
    Given: 146
    Total Downloaded
    1.99 GB

    0 Not allowed!

    Default Re: Do..Loop and Repeat..until

    Not really John.

    Within the compiler, they both use the same condition parser code, but change characteristics to suite how the comparision takes place. i.e true instead of false, or vice-versa (Loop Until or Loop While). I added Do-Loop because, to me, it seems a bit more understandable.

    However this is not the case for While-Wend which will not even enter the loop if the condition is not met in the While statement, whereas both Do-Loop and Repeat-Until will always do the content of the loop first, which in some cases is not wanted.

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #3
    Prolific Poster johngb's Avatar
    Join Date
    Oct 2003
    Posts
    2,167
    Thumbs Up
    Received: 96
    Given: 1
    Total Downloaded
    2.90 GB

    0 Not allowed!

    Default Re: Do..Loop and Repeat..until

    Thanks, that was what I expected, and I agree Do Loop is a much clearer syntax.
    JohnB

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #4
    Prolific Poster hadv215's Avatar
    Join Date
    Sep 2009
    Posts
    1,136
    Thumbs Up
    Received: 66
    Given: 26
    Total Downloaded
    3.61 GB

    0 Not allowed!

    Default Re: Do..Loop and Repeat..until

    That's exactly the difference between While-Wend and Repeat-Until. These two constructions should be sufficient and, what's more, compatible with other languages.
    Nobody ever suffered for thinking before doing

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

    Thread Information

    Users Browsing this Thread

    There are currently 1 users browsing this thread. (0 members and 1 guests)

       

    Similar Threads

    1. Repeat Until fault
      By charliecoultas in forum Proton Plus Compiler v3
      Replies: 6
      Last Post: 22nd November 2013, 20:28
    2. [SOLVED !] Baffling behaviour of For Next in a Repeat loop
      By picyerknows in forum Proton Plus Compiler v3
      Replies: 10
      Last Post: 10th October 2008, 12:07
    3. Possible problem with Repeat..Until
      By C_Moore in forum Proton Plus Compiler v3
      Replies: 4
      Last Post: 22nd June 2006, 12:19

    Tags for this Thread

    Posting Permissions

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