Exit语句
Exit语句用于结束某个代码块,它的形式如下。想用Exit退出哪个代码块,就写哪个代码块的类型。
Exit { Do | For | Function | Property | Select | Sub | Try | While }
Continue语句
Continue语句用于结束当前循环,直接进行下一次循环。它的形式如下,后面跟要继续的代码块类型。
Continue { Do | For | While }
Goto语句
最后就是Goto语句,它会直接跳转到指定的标签处。
'Goto语句 GoTo Ending Console.WriteLine("Print something") Ending: Console.WriteLine("This is end.")
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/u011054333/article/details/78984118