In CHUI, is there a way to surpress the messages or atleast ensure that no pause occurs after the message, for a called program from the calling program?
Eg. Program createDocument.p runs loadFile.r. Can I ensure that messages in loadFile.r are not displayed to the user?
Thanks.
Check the OUTPUT TO statement with the KEEP-MESSAGES option. So you'll
be able to redirect messages to a temp file or the null device.
Pause 0 before-hide is the other basic trick.
Is there a way to hide alert boxes as well? If not, is there a way to tell the calling program from within the called program (without an input parameter)?
Thanks.
Do you mean, can you detect that you are running batch and have the program suppress or redirect the alerts?
Yes. But this is not a batch created by a script. It is a user initiated batch based on criteria.
Yes. But this is not a batch created by a script. It is a user initiated batch based on criteria.
Are the messages generated by runtime error messages or MESSAGE ... VIEW-AS ALERT-BOX or just MESSAGE?
MESSAGE .... VIEW-AS ALERT-BOX.
So, change the program to not do that ...