RUNMODAL complete explanation

I have searched and gone through explanation of RUN vs RUNMODAL in this forum, but still i didn’t understand actual difference between RUN vs RUNMODAL. and also i want to know in depth explanation of RUNMODAL. I mean what is the meaning of this sentence "RUNMODAL Creates, runs, and closes a form object that you specify. The form is run modally & When a form is run modally, no input (keyboard or mouse click) can occur except to objects on the modal form".

Thank you

Welcome to DUG

To Understand better,

Create a form with 2 buttons

Name them as RunModal and Run

Write below code under RunModal

REPORT.RUNMODAL(205);
Message(‘Runmodal’);

Below Code Under Run

REPORT.RUN(205);
Message(‘Run’);

When you press RunModal button, you dont receive RunModal message because the system will hold untill you close the form/report which ran modally…( no input (keyboard or mouse click) can occur except to objects on the modal form". ) means you cant minimize the report and select the form.

If you click Run,

you will receive message Run immediatly when report is open.

Hope you understood the difference.

Thanks, i understood that if we run report/form in rummodal function, which stop code or pause functionality until we close the form or report?

Yes true…