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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Program continue after returning a string

JohnRudnicki
14-Alexandrite

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

1 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

Top Tags