June 2006
Intermediate to advanced
1344 pages
42h 52m
English
The Exit statement can be used to alter a program’s flow of control. There are many forms of the Exit statement, designed to exit different types of code blocks. In this section, we focus on using the Exit statement in repetition statements. The Exit 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 exit immediately from that repetition statement. Similarly, the Exit For statement and the Exit While statement cause immediate exit from For...Next and While...End While loops, respectively. Execution continues with the first statement after the repetition statement. Figure 6.15 demonstrates the Exit For
Read now
Unlock full access