==========================================
Exit procedure:
Exits from the current procedure
退出当前过程。
(注:你就可以用这个,记得之前对Result赋值!)
==========================================
Halt procedure:
Initiates abnormal termination of a program.
中止程序并返回一个异常码。
==========================================
Abort procedure:
Raises a silent exception.
产生一个无错误消息的异常。
==========================================
Break procedure:
Causes the flow of control to exit a for, while, or repeat statement. 
从for,while或repeat循环中退出。
==========================================
Continue procedure:
Allows the flow of control to proceed to the next iteration of for, while, or repeat statements.
退出当前循环体,进入下一次循环。
==========================================

解决方案 »

  1.   

    ==========================================
    Exit procedure:
    Exits from the current procedure
    退出当前过程。
    (注:你就可以用这个,记得之前对Result赋值!)
    ==========================================
    Halt procedure:
    Initiates abnormal termination of a program.
    中止程序并返回一个异常码。
    ==========================================
    Abort procedure:
    Raises a silent exception.
    产生一个无错误消息的异常。
    ==========================================
    Break procedure:
    Causes the flow of control to exit a for, while, or repeat statement. 
    从for,while或repeat循环中退出。
    ==========================================
    Continue procedure:
    Allows the flow of control to proceed to the next iteration of for, while, or repeat statements.
    退出当前循环体,进入下一次循环。
    ==========================================
      

  2.   

    No.1
    ExitNo.2 不建议
    goto
      

  3.   

    忘掉GOTO语句吧!真正的结构化和面向对象编程是不需要它的!
      

  4.   

    先判断,满足条件时exit。不到万不得已不用goto,到了万不得已,也不要用goto……