cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Program continue after returning a string

JohnRudnicki
15-Moonstone

Program continue after returning a string

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".

ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

2 REPLIES 2

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

Announcements

Top Tags