Q&A

  • abort 와 exit 의 차이가어떻게 되나요?
abort 와 exit 의 차이가 어떻게 되나요 부탁드립니다
2  COMMENTS
  • Profile
    손희석 2006.06.16 22:59
    한번 도움말을 찾아보시면 될텐데요..

    도움말을 먼저 찾아보시도록 하세요.. 잘나와 있습니다.. 참고로 도움말을 그대로 복사했습니다.

    Abort Routine

    Raises a silent exception.

    Unit
    SysUtils

    Syntax


    [Delphi] procedure Abort();


    Description
    Use Abort to escape from an execution path without reporting an error.

    Abort raises a special "silent exception" (EAbort), which operates like any other exception, but does not display an error message to the end user. Abort redirects execution to the end of the last exception block.
    ---------------------------------------------------------------------------------------------------------------------
    Exit Routine

    Exits from the current procedure.

    Unit
    System

    Syntax


    [Delphi] procedure Exit();


    Description
    In Delphi, the Exit procedure immediately passes control away from the current procedure. If the current procedure is the main program, Exit causes the program to terminate.

    Exit will cause the calling procedure to continue with the statement after the point at which the procedure was called.
    Note:
    Exit passes control away from the current procedure, not merely the current block. But Exit does not violate the flow of control dictated by a try..finally construct; if Exit is called inside the try clause, the finally clause is still executed.




  • Profile
    박성준 2006.06.17 16:55
    안녕하세요?
    답변을 충실히 잘 해주셨는데요?
    영어로 되어있어서 이해하기가 좀 힘드실까봐...
    오브젝트 파스칼(한글번역본)에 있는 내용을 인용하여
    답변을 드리고자 합니다.

    Abort : 오류를 보고하지 않고 프로세스를 끝냅니다.
    Exit : 현재 프로시저를 빠져나갑니다.

    답변이 좀 짧죠?
    부족한것은 또 리플달아주세요...

    아~ 토요일인데 뭐하남?
    오~ 필승코리아! 대~한~민~국!!!