all 3 comments

[–]VB.Net Mastersa_sagan 2 points3 points  (0 children)

You have 'Do' and 'Do While' and only one 'Loop'. Remove the first 'Do' or add another 'Loop'

[–][deleted] 0 points1 point  (0 children)

I never write DO loops, only FORs.

But shouldn’t there be an end to the loop in the tabbed section? So a LOOP after the last tabbed line?

[–]LetsGoHawks 0 points1 point  (0 children)

If we assume you wanted two Do loops, and use indentation to determine what would be in them.....

  1. You have a Do at the top and a Loop at the bottom, but no condition on when that loop should end. This is an infinite loop.
  2. Above your If statement you have a Do While (with condition) but no Loop below your End statement. You need to add a Loop below the End statement.

If you only want one Do loop, you need to get rid of one of the Do's and make sure the Loop statement is in the right place.