Microsoft® Visual Basic® Scripting Edition Exit Statement |
| Language Reference |
|
Exits a block of Do...Loop, For...Next, Function, or Sub code.
Exit DoExit For
Exit Function
Exit Sub
The Exit statement syntax has these forms:
Statement Description Exit Do Provides a way to exit a Do...Loop statement. It can be used only inside a Do...Loop statement. Exit Do transfers control to the statement following the Loop statement. When used within nested Do...Loop statements, Exit Do transfers control to the loop that is one nested level above the loop where it occurs. Exit For Provides a way to exit a For loop. It can be used only in a For...Next or ForEach...Next loop. Exit For transfers control to the statement following the Next statement. When used within nested For loops, Exit For transfers control to the loop that is one nested level above the loop where it occurs. Exit Function Immediately exits the Function procedure in which it appears. Execution continues with the statement following the statement that called the Function. Exit Sub Immediately exits the Sub procedure in which it appears. Execution continues with the statement following the statement that called the Sub.
file: /Techref/language/asp/vbs/vbscript/371.htm, 3KB, , updated: 1996/11/22 10:12, local time: 2024/11/30 00:53,
3.144.253.195:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://ecomorder.com/Techref/language/asp/vbs/vbscript/371.htm"> Microsoft® Visual Basic® Scripting Edition </A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to ecomorder.com! |
.