Page 1 of 1

Error Messages in modify mode

Posted: August 29th, 2016, 3:43 pm
by khurshid.arshad
Dear Team

How we can skip all the error messages in modify mode with one command.

Thanks.
a.

Re: Error Messages in modify mode

Posted: August 30th, 2016, 7:00 am
by josh
There isn't a way to disable all messages. You would need to check the return from the demode() function before displaying each message and not display it if in modify mode.

Re: Error Messages in modify mode

Posted: August 31st, 2016, 12:15 pm
by khurshid.arshad
thanks.
a.

Re: Error Messages in modify mode

Posted: September 8th, 2016, 2:27 pm
by Gregory Martin
If I were to follow Josh's advice, I would create a function that would take care of the conditional display of messages, and then use the maketext function to format the messages:
function DisplayMessage(string message)

    
if demode() = 1 then
        
errmsg("%s",message);
    
endif;

end;

// ...

DisplayMessage(
maketext("Ages are not consistent!"));