vb.NET Missing a 'continue' statement in while loop?

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: PagCal (pagcal_at_runbox.com)
Date: 07/08/04


Date: Thu, 08 Jul 2004 16:36:04 -0400

Is this language missing the functionality of a C/C++ 'continue' statement?

For example:

   While NOT isEof()
        If condition
                ' a C or C++ continue would work here
                ' but we are forced to use a GoTo
                GoTo nxt
        End If
        ... more statements here ...
   nxt:
   End While

You CAN rewrite the code to get rid of the GoTo by adding an 'else' to
the If, but code complexity increases as you're nesting more code in
conditionals.



Relevant Pages