Calling a function in another function in same script include

antonymirza
Tera Expert

Hi All,

Is there any problem when we call one function in another in the same "Script include" because when I do so, it does not work? If so then please suggest any best practice to achieve this.

Brgds, AM

1 ACCEPTED SOLUTION

Kalaiarasan Pus
Giga Sage

use this.functionname() for calling functions of the same script ...


View solution in original post

7 REPLIES 7

Harish Murikina
Tera Guru

How your calling the function you have to call like below



this.functionname


Kalaiarasan Pus
Giga Sage

use this.functionname() for calling functions of the same script ...


I have tried both of below calling methods:



this.test();


test();



But, none of them is working...


Keep log inside function and check log is calling or not