Share via


Expected 'while'

You did not include the while condition in a do...while loop. A do statement must have a corresponding while test at the end of the code block.

To correct this error

  • Include the while test statement after the closing curly brace.

See also

while Statement
Controlling Program Flow