|Bookshelf Home | Contents | Index | PDF|
Use Exit Do inside a Do...Loop statement. Use Exit For inside a For...Next statement. When the Exit statement is executed, control transfers to the statement after the Loop or Next statement. When used within a nested loop, an Exit statement moves control out of the immediately enclosing loop.
This example uses the On Error statement to trap run-time errors. If there is an error, the program execution continues at the label "Debugger." The example uses the Exit statement to skip over the debugging code when there is no error.
|Siebel VB Language Reference|