Options

Stop the infinite loop.

upasanisandipupasanisandip Member Posts: 405
Hi all,
I have given 1 message box in loop.
But it is infinite. I want to stop that .
Like we use Ctrl + Pause in other languages.

Is there anything like that in Navision?


Thanks,
Sandip.

Answers

  • Options
    Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    No there isn't. You have to close the application (try using Task Manager).
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • Options
    garakgarak Member Posts: 3,263
    An tip. Don't use messageboxes (for example for debugging) Use confirm.
    Here you have the chance to stop your application code
    Do you make it right, it works too!
  • Options
    PhennoPhenno Member Posts: 630
    garak wrote:
    An tip. Don't use messageboxes (for example for debugging) Use confirm.
    Here you have the chance to stop your application code

    or simply add integer counter to test message boxes...

    IF intcount >1000 THEN EXIT;

    :)


    Ofcourse, where applicable.
  • Options
    SaalekSaalek Member Posts: 181
    push ESC key continuosly.

    Finaly, the process stops

    bye
  • Options
    DenSterDenSter Member Posts: 8,304
    you could also program a status window using a dialog type variable, which gives you a cancel button by default.
  • Options
    PhennoPhenno Member Posts: 630
    Phenno wrote:
    garak wrote:
    An tip. Don't use messageboxes (for example for debugging) Use confirm.
    Here you have the chance to stop your application code

    or simply add integer counter to test message boxes...

    IF intcount >1000 THEN EXIT;

    :)


    Ofcourse, where applicable.

    bad idea... ](*,)
    in this case, you should click ok button "only" 1000 times....
    but hey... that number could be smaller, eg. 40.
  • Options
    DenSterDenSter Member Posts: 8,304
    :mrgreen: LOL that reminds me of a go-live weekend. We had written a dataport that automatically posted, but there was a confirm message for every line that had to be clicked away. Instead of commenting out the message (there was other stuff going on at the same time and we didn't want to lose the message) we came up with a 'data migration tool' in the form of a wrench socket that was placed on the 'Y' key. It wasn't so easy to find the right one, as the small ones were to light and the bigger ones were too big for the key. We had to use a certain person's laptop to make it work, that was the only one whose key was loose enough for the weight of the socket.

    For those of you who don't understand what a socket is click here
  • Options
    kinekine Member Posts: 12,562
    Daniel, this is one from the best stories from NAV world for me... :D:D:D:D hardware solution for software problem... many users are solving the problems of confirmations in same way. (it reminds me one episode from The Simpsons ;-)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    ssinglassingla Member Posts: 2,973
    LOL that reminds me of a go-live weekend. We had written a dataport that automatically posted, but there was a confirm message for every line that had to be clicked away. Instead of commenting out the message (there was other stuff going on at the same time and we didn't want to lose the message) we came up with a 'data migration tool' in the form of a wrench socket that was placed on the 'Y' key. It wasn't so easy to find the right one, as the small ones were to light and the bigger ones were too big for the key. We had to use a certain person's laptop to make it work, that was the only one whose key was loose enough for the weight of the socket.




    Great Solution :lol::lol::lol:
    CA Sandeep Singla
    http://ssdynamics.co.in
Sign In or Register to comment.