I tried to understand the difference between run and runmodal but not successfully :? . It seems to be someting like background activity :shock: .. can someone explain me that in "simple words"?
Typically, RUNMODAL function "waits" during process that the object required is closed before continuing the code. With that, you can manage Return value of the RUNMODAL fct to decide what to do after...
Example :
Try this in a CU :
FORM.RUN(30);
MESSAGE('OK');
The Message Box appears directly with the Item Card
FORM.RUNMODAL(30);
MESSAGE('OK');
In this case the Message Box appears after you close the Item Card.
That's all the difference ! For the rest (return value of the RUNMODAL), see in the online help
Comments
Example :
Try this in a CU :
FORM.RUN(30);
MESSAGE('OK');
The Message Box appears directly with the Item Card
FORM.RUNMODAL(30);
MESSAGE('OK');
In this case the Message Box appears after you close the Item Card.
That's all the difference ! For the rest (return value of the RUNMODAL), see in the online help
Hope that help you !!