Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2005
Visual Studio
Visual Basic
Error Messages
Compiler Messages
 'Loop' must be preceded by a matchi...

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
Visual Basic Reference: Error Messages 
'Loop' must be preceded by a matching 'Do' 

A Loop statement occurs without a corresponding Do statement. Loop must be preceded by a corresponding Do statement.

Error ID: BC30091

To correct this error

  1. If this Do loop is part of a set of nested Do loops, make sure each loop is properly terminated.

  2. Verify that other control structures within the Do loop are correctly terminated.

  3. Ensure that this Do loop is correctly formatted.

See Also

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker