Results 1 to 5 of 5

Thread: difference between while, do while, and loop until

  1. #1

    Thread Starter
    Hyperactive Member notquitehere188's Avatar
    Join Date
    Dec 2004
    Posts
    403

    difference between while, do while, and loop until

    i know that do while and loop until just check at different times, but what is the difference between them and a while...wend loop
    It's not just Good, It's Good enough!



    Spelling Eludes Me

  2. #2
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: difference between while, do while, and loop until

    While-Wend can't be stopped if I'm not mistaken. In the Do/While/Until you can stop the loop with Exit Do.


    Has someone helped you? Then you can Rate their helpful post.

  3. #3

    Thread Starter
    Hyperactive Member notquitehere188's Avatar
    Join Date
    Dec 2004
    Posts
    403

    Re: difference between while, do while, and loop until

    but i was told that you arent supposed to use exit do anyway and that you are just supposed to use a flag, bad form or smething like that
    It's not just Good, It's Good enough!



    Spelling Eludes Me

  4. #4
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: difference between while, do while, and loop until

    Sure it's better, but you still have the option. Just like GoTo. You shouldn't use it, but it still exists as a feature


    Has someone helped you? Then you can Rate their helpful post.

  5. #5
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: difference between while, do while, and loop until

    Quote Originally Posted by notquitehere188
    but i was told that you arent supposed to use exit do anyway and that you are just supposed to use a flag, bad form or smething like that
    While-Wend is a "left-over" from early versions of BASIC and isn't recommended to be used any longer (even by the creators). It doesn't allow easy way out of the loop such Exit Do. It's still being used unfortunately but I think mostly by the "very old timers" (with all do respect) and those that were taught by them...

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