Return不行,循环后面的代码也不能执行了,
单纯的Exit For 也不行,只能跳出一级循环。
For i As Integer = 1 To 5 For j As Integer = 1 To 5 For k As Integer = 1 To 5 For l As Integer = 1 To 5 For m As Integer = 1 To 5 Goto I_Am_Out Next Next Next NextNextI_Am_Out:MessageBox.Show("哈哈,总算出来了!")