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?
Exit Forwill only exit the current loop Forin which it is running.
Exit For
For
From MSDN :
Output forFor, . , Next. "" "". For, Exit .
Output for
For, . , Next. "" "". For, Exit .
: - .
:
" For , . , Next... Exit For .
MSDN