Export (0) Print
Expand All

Expected 'Loop'

You created a Do loop construct, but did not properly terminate the loop. Do loop constructs are terminated with an associated Loop statement. The following demonstrates the correct structure of a Do loop construct.

                      Do [{While | Until} condition]
   [Exit Do]

Or, you can use this syntax:

   [Exit Do]
Loop [{While | Until} condition]

To correct this error

  • Make sure that the Do loop construct includes all the necessary parts.

Community Additions

© 2014 Microsoft