Check pressing cancel in a dialog

Christian_BuehlChristian_Buehl Member Posts: 145
edited 2002-11-18 in Navision Financials
Is there any way to I check if a user has pressed the cancel button in a dialog ?

My current code is:
dlg.open('Waiting for PDF-Printer @1@@@@@');
repeat 
  counter := counter + 1;
  dlg.update(1, counter);
until exists(filename) or counter > 9999;
dlg.close
.... // do something with PDF-File i

Thanks for any hints

Comments

  • SpeedySpeedy Member Posts: 2
    i dont know, how to check the cancel button, but you can design a form, that do this ...
    just start this form with runmodal and check the return value, with the timer trigger you can close the form too.

    mfg
    speedy
Sign In or Register to comment.