我刚刚转到 VisualBasic 团队工作。
在 VisualBasic 中,与 break等效的关键字是什么,即尽早退出循环而不是退出方法?
break
In both Visual Basic 6.0 and VB.NET you would use:
Exit For
Wend
Exit Do
depending on the loop type. See Exit Statements for more details.
Exit [construct], and intelisense will tell you which one(s) are valid in a particular place.
Exit
In case you're inside a Sub of Function and you want to exit it, you can use :
Exit Sub
or
Exit Function