We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

'Loop' cannot have a condition if matching 'Do' has one

Visual Studio 2008

A Loop statement contains a While or Until clause, and the corresponding Do statement also contains such a clause. Only one of the Do and Loop statements in a loop can specify a condition.

Error ID: BC30238

To correct this error

  • Remove the While or Until clause from either the Do statement or the Loop statement.