companyclose - error on calling the trigger

omard
omard Member Posts: 20
Hi

I am try to use the companyclose trigger (codeunit 1) to close Navision but when I call the trigger I get the error "The Date is not valid".

The error is being triggered because the var LogInDate (LogInEnd procedure) is not initialised.. I thought this variable gets initialised on user login and maintained throughout the session.

To call the trigger I init a variable called l_AppMan then invoked it by the code l_AppMan.CompanyClose;

Any help is appreciated

Thanks

Omar
let's navigate!

Comments

  • omard
    omard Member Posts: 20
    Or

    can you please explain how to close a company using code?

    Basically I have a button which when clicked I need to show the login screen

    Thanks
    let's navigate!