Skip to main content
12-Amethyst
October 22, 2021
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
October 22, 2021

@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
October 22, 2021

Attached is the Mathcad

Translate
24-Ruby IV
October 22, 2021

Please upload your Mathcad worksheet to message.

Translate
12-Amethyst
October 22, 2021

I did twice above

Translate
23-Emerald V
October 22, 2021

@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
October 22, 2021

Oh I see thanks @StuartBruff !!

Translate
23-Emerald V
October 22, 2021

No problem.

 

Stuart

Translate