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

Error when I call a function more than once !!!

Eng_ReyD_497
7-Bedrock

Error when I call a function more than once !!!

I have functions, which are working fine when I call in the first time. But I get an error "This Value must be an integer" with any subsequent calls for the same functions...

 

What is wrong? please help!

1 ACCEPTED SOLUTION

Accepted Solutions


@Eng_ReyD_497 wrote:

I have functions, which are working fine when I call in the first time. But I get an error "This Value must be an integer" with any subsequent calls for the same functions...

 

What is wrong? please help!


You've overwritten your definition of the function lsur.   You can either change the name of the function/variable or change the Label on the function as I've done in the attached worksheet.

 

Stuart

View solution in original post

6 REPLIES 6

Attached is the Mathcad

VladimirN
23-Emerald III
(To:Eng_ReyD_497)

Please upload your Mathcad worksheet to message.

I did twice above


@Eng_ReyD_497 wrote:

I have functions, which are working fine when I call in the first time. But I get an error "This Value must be an integer" with any subsequent calls for the same functions...

 

What is wrong? please help!


You've overwritten your definition of the function lsur.   You can either change the name of the function/variable or change the Label on the function as I've done in the attached worksheet.

 

Stuart

View solution in original post

Oh I see thanks @StuartBruff !!

No problem.

 

Stuart

Announcements
Check out the latest
Mathcad Tip
"PTC Mathcad 15 / Prime 1-6 Update."