Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VB.net 1.1 - Is there a Continue For?

Have to maintain an old website using VB.net 1.1 using Notepad :( I have some code that I wrote for a few of our .Net 4 websites that the boss man wants ported to the old sites. Found examples of VB.net 1.1 code that showed use of "Continue For" within a For/Next block to skip to the next iteration. However, when I try it in the code I get an exception that "Name 'Continue' has not been declared." Should this be available, or are the examples incorrect and it is a .Net 2.0 thing?

like image 840
Sam Avatar asked Dec 19 '25 17:12

Sam


1 Answers

Continue statement was added in VS 2005.

If you really need you could use a GoTo statement to jump to the end. I've never needed a GoTo myself in 7 years of development in VB.NET with VS 2003.

like image 188
Tim Schmelter Avatar answered Dec 21 '25 10:12

Tim Schmelter