SyntaxFix
Write A Post
Hire A Developer
Questions
Tags
I just moved over to the Visual Basic team here at work.
What is the equivalent keyword to break in Visual Basic, that is, to exit a loop early but not the method?
break
This question is related to vb.net loops vb6 exit
vb.net
loops
vb6
exit
In case you're inside a Sub of Function and you want to exit it, you can use :
Exit Sub
or
Exit Function
Exit [construct], and intelisense will tell you which one(s) are valid in a particular place.
Exit
Source: Stackoverflow.com