Week 7 research assignment 1_exit an infinite_loop

Week 7 Research Assignment 1_Exit an Infinite_Loop
Download Document
Showing pages : 1 - 2 of 2
This preview has blurred sections. Sign up to view the full version! View Full Document
<NAME> PT1420 04 November 2012 Week 7 Research Assignment 1: Exploring How to Stop or Exit an Infinite Loop The techniques or structures used to exit an infinite loop are an Exit Statement written in the structure, the following are some examples of a few: “Immediately exits the Do loop in which it appears. Execution continues with the statement following the Loop statement. Exit Do can be used only inside a Do loop. When used within nested Do loops, Exit Do exits the innermost loop and transfers control to the next higher level of nesting” . “Immediately exits the For loop in which it appears. Execution continues with the
Background image of page 1
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: statement following the Next statement. Exit For can be used only inside a For ... Next or For Each ... Next loop. When used within nested For loops, Exit For exits the innermost loop and transfers control to the next higher level of nesting . Immediately exits the While loop in which it appears. Execution continues with the statement following the End While statement. Exit While can be used only inside a While loop. When used within nested While loops, Exit While transfers control to the loop that is one nested level above the loop where Exit While occurs . <NAME> PT1420 04 November 2012...
View Full Document