6.9. Using the Continue Statement in Repetition Statements

The Continue statement skips the remaining statements in the loop body of a repetition statement and causes control to proceed to the next iteration of the loop. Like the Exit statement, Continue comes in many forms. The Continue Do statement can be executed in a Do While...Loop, Do...Loop While, Do Until...Loop or Do...Loop Until statement to cause the program to skip the remainder of the current iteration of that repetition statement. Similarly, the Continue For statement and Continue While statement cause the program to skip the remainder of the current iteration of For...Next and While loops, respectively. Unlike the Exit statement, the Continue statement is used to alter program ...

Get Visual Basic 2005 for Programmers: Deitel Developer Series, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.