what is the difference between quit and exit in navision?

chandrurecchandrurec Member Posts: 560
Hi all,

I want to know the difference between Exit and Quit in Navision.If anyone knows the difference and in which context we need to use ,kindly let me know.

Thanks in advance.

Regards,
chandru.

Comments

  • vijay_gvijay_g Member Posts: 884
    Both will stop execution but Quit will execute remains line of code in same trigger while exit does not(it will stop the execution from the line where exit written).
  • krikikriki Member, Moderator Posts: 9,112
    EXIT can be used in all objects and you only need to write "EXIT;". EXIT just exits the current functions/trigger
    QUIT can only be used in dataports,reports,XMLports and needs to be used as follows "Currreport.QUIT;" (for reports). QUIT stops processing the dataport,report,XMLport.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • dansdans Member Posts: 148
    kriki wrote:
    EXIT can be used in all objects and you only need to write "EXIT;". EXIT just exits the current functions/trigger
    QUIT can only be used in dataports,reports,XMLports and needs to be used as follows "Currreport.QUIT;" (for reports). QUIT stops processing the dataport,report,XMLport.

    This :thumbsup:

    When you use QUIT, the report / dataport / xmlport is aborted without committing any changes that were made to the database.
    Microsoft Certified IT Professional for Microsoft Dynamics NAV

    Just a happy frood who knows where his towel is
Sign In or Register to comment.