If youd like to exit only a Loop then you can use "break" (at least in C# - dont know whether it also works in VB.NET)... the program contiues to run in the same procedure/function but after the Loop you where just in..
hum I think in VB to exit a loop is "Exit For" I dont know either if the break statement will work there, the return statement will work as an "Exit Sub" or "Exit Function"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.