In vb.net when you break out of a loop, do you break all the nested loops?
loops, vb.net
Solution
`Exit For` will only exit the current `For` loop that it is executing in.
From MSDN:
Exit For
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.
Problem
So I have some vb.net code, and I have a nested For loop inside a For loop, and then I have EXIT FOR statement, will it break out of one loop, or the whole chain?