Skip to main content
12-Amethyst
Solved

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!

23-Emerald V

@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

6 replies

12-Amethyst

Attached is the Mathcad

Translate
24-Ruby IV

Please upload your Mathcad worksheet to message.

Translate
12-Amethyst

I did twice above

Translate
23-Emerald V

@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

Translate
12-Amethyst

Oh I see thanks @StuartBruff !!

Translate
23-Emerald V

No problem.

 

Stuart

Translate