In vb.net, when you exit a loop, do you break all nested loops?

So, I have some vb.net code, and I have a nested For loop inside a For loop, and then I have an EXIT FOR statement, will it go out of one loop or the whole chain?

+3
source share
2 answers

Exit Forwill only exit the current loop Forin which it is running.

From MSDN :

Output for

For, . , Next. "" "". For, Exit .

+12

: - .

:

:

" For , . , Next... Exit For .

MSDN

+4

All Articles