Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
Is there a way to have a program return a message but then continue executing? For example, in the attached program I want it to print the message "The ball does not reach the basket" but continuing executing rather than stopping, as happens with "return".
Solved! Go to Solution.
John Rudnicki wrote:
Is there a way to have a program return a message but then continue executing? For example, in the attached program I want it to print the message "The ball does not reach the basket" but continuing executing rather than stopping, as happens with "return".
Use the 'on error' programming construct. See help or attached (Mathcad 11 .mcd worksheet)
Stuart
John Rudnicki wrote:
Is there a way to have a program return a message but then continue executing? For example, in the attached program I want it to print the message "The ball does not reach the basket" but continuing executing rather than stopping, as happens with "return".
Use the 'on error' programming construct. See help or attached (Mathcad 11 .mcd worksheet)
Stuart
Thanks. jwr