This preview has intentionally blurred parts. Sign up to view the full document

View Full Document

Unformatted Document Excerpt

<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 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

End of Preview

Sign up now to access the rest of the document