如题

解决方案 »

  1.   

    Private Sub Command1_Click()
    For j = 6 To 10
         If j = 8 Then GoTo jumehere
         Print j
    jumehere:
    Next
    End Sub
      

  2.   

    在VB6里除了goto以外没别的方法了
    VB.NET里加入了这个功能的函数
      

  3.   

    在c或C++中可以
    如:
    for(i=0;i<20;i++)
    {
      if i==3
         continue;//退出本次for循环,而执行下次循环
       cout<<i;
    }
      

  4.   

    也可以这样:
    Private Sub Command1_Click()
      For j = 6 To 10
        If j <> 8 Then Print j
      Next
    End Sub