<p>I just moved over to the Visual Basic team here at work.</p>

<p>What is the equivalent keyword to <code>break</code> in Visual Basic, that is, to exit a loop early but not the method?</p>

[{'answer_id': 5761, 'author': 'John', 'author_id': 33, 'author_profile': 'https://Stackoverflow.com/users/33', 'pm_score': 9, 'selected': True, 'text': '<p>In both Visual Basic 6.0 and <a href="http://en.wikipedia.org/wiki/Visual_Basic_.NET" rel="noreferrer">VB.NET</a> you would use:</p>\n\n<ul>\n<li><code>Exit For</code> to break from For loop</li>\n<li><code>Wend</code> to break from While loop</li>\n<li><code>Exit Do</code> to break from Do loop</li>\n</ul>\n\n<p>depending on the loop type. See <a href="https://learn.microsoft.com/en-us/dotnet/visual-basic/language-reference/statements/exit-statement" rel="noreferrer">Exit Statements</a> for more details.</p>\n'}, {'answer_id': 5782, 'author': 'Eric Haskins', 'author_id': 100, 'author_profile': 'https://Stackoverflow.com/users/100', 'pm_score': 2, 'selected': False, 'text': '<p><code>Exit</code> [construct], and intelisense will tell you which one(s) are valid in a particular place.</p>\n'}, {'answer_id': 16022965, 'author': 'Ayman El Temsahi', 'author_id': 2205080, 'author_profile': 'https://Stackoverflow.com/users/2205080', 'pm_score': 3, 'selected': False, 'text': "<p>In case you're inside a Sub of Function and you want to exit it, you can use :</p>\n\n<pre><code>Exit Sub\n</code></pre>\n\n<p>or </p>\n\n<pre><code>Exit Function \n</code></pre>\n"}]
['https://Stackoverflow.com/questions/5759', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/713/']