Surpress messages in a called program

Posted by tariqjamal on 14-Oct-2009 10:54

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.

All Replies

Posted by Admin on 14-Oct-2009 11:06

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.

Posted by Thomas Mercer-Hursh on 14-Oct-2009 11:35

Pause 0 before-hide is the other basic trick.

Posted by tariqjamal on 14-Oct-2009 12:51

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.

Posted by Thomas Mercer-Hursh on 14-Oct-2009 12:55

Do you mean, can you detect that you are running batch and have the program suppress or redirect the alerts?

Posted by tariqjamal on 14-Oct-2009 13:00

Yes. But this is not a batch created by a script. It is a user initiated batch based on criteria.

Posted by Admin on 14-Oct-2009 13:06

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?

Posted by tariqjamal on 14-Oct-2009 13:13

MESSAGE .... VIEW-AS ALERT-BOX.

Posted by Thomas Mercer-Hursh on 14-Oct-2009 13:22

So, change the program to not do that ...

This thread is closed