Skip to main content
12-Amethyst
October 22, 2021
Solved

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

  • October 22, 2021
  • 3 replies
  • 2422 views

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!

Best answer by StuartBruff

@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

3 replies

12-Amethyst
October 22, 2021

Attached is the Mathcad

24-Ruby III
October 22, 2021

Please upload your Mathcad worksheet to message.

12-Amethyst
October 22, 2021

I did twice above

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

12-Amethyst
October 22, 2021

Oh I see thanks @StuartBruff !!

23-Emerald V
October 22, 2021

No problem.

 

Stuart