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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

Translate the entire conversation x

Passing a for loop variable

JasonC
1-Visitor

Passing a for loop variable

Pls. see attached file. On the last page is my question which is regarding passing a range variable defined by a for loop, into a previously defined function. I get an error message.

TIA,

Jason

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:JasonC)

See attached. Basically the error is thrown because you attempted to create a range 0,0..0 which is not allowed. Mathcad insists that the second value (the one after the comma) is greater than the first.

It can easily be fixed because the range in your routine I90 can be written simpler. See attached.

View solution in original post

3 REPLIES 3
Werner_E
25-Diamond I
(To:JasonC)

See attached. Basically the error is thrown because you attempted to create a range 0,0..0 which is not allowed. Mathcad insists that the second value (the one after the comma) is greater than the first.

It can easily be fixed because the range in your routine I90 can be written simpler. See attached.

JasonC
1-Visitor
(To:Werner_E)

Thanks. The error message was a bit cryptic.

Werner_E
25-Diamond I
(To:JasonC)

Jason Cuadra wrote:

Thanks. The error message was a bit cryptic.

Agreed, especially as it is not traceable up to the point where the real error "happens".

Announcements

Top Tags