vb.NET Missing a 'continue' statement in while loop?
From: PagCal (pagcal_at_runbox.com)
Date: 07/08/04
- Next message: Jeff Johnson [MVP: VB]: "Re: vb.NET Missing a 'continue' statement in while loop?"
- Previous message: SA: "Re: If a() AND b() both ALWAYS execute?"
- Next in thread: Jeff Johnson [MVP: VB]: "Re: vb.NET Missing a 'continue' statement in while loop?"
- Reply: Jeff Johnson [MVP: VB]: "Re: vb.NET Missing a 'continue' statement in while loop?"
- Reply: Herfried K. Wagner [MVP]: "Re: vb.NET Missing a 'continue' statement in while loop?"
- Maybe reply: Chris Dunaway: "Re: vb.NET Missing a 'continue' statement in while loop?"
- Messages sorted by: [ date ] [ thread ]
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.
- Next message: Jeff Johnson [MVP: VB]: "Re: vb.NET Missing a 'continue' statement in while loop?"
- Previous message: SA: "Re: If a() AND b() both ALWAYS execute?"
- Next in thread: Jeff Johnson [MVP: VB]: "Re: vb.NET Missing a 'continue' statement in while loop?"
- Reply: Jeff Johnson [MVP: VB]: "Re: vb.NET Missing a 'continue' statement in while loop?"
- Reply: Herfried K. Wagner [MVP]: "Re: vb.NET Missing a 'continue' statement in while loop?"
- Maybe reply: Chris Dunaway: "Re: vb.NET Missing a 'continue' statement in while loop?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|