ADBlock is blocking some content on the site
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?
In both Visual Basic 6.0 and VB.NET you would use:
depending on the loop type. See Exit Statements for more details.
In case you're inside a Sub of Function and you want to exit it, you can use :
Exit [construct], and intelisense will tell you which one(s) are valid in a particular place.
Get answers to millions of questions and give back by sharing your knowledge with others.
Sign up for an account.