Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! 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