| || |
I have two functions where one is public function and another one is private function. Both will be present in the same action.
As per QTP's user guide if i call the public function from another action then it should work.
But i am getting error for this.
This is my code
public function main(a,b)
d = main1(10,5)
c = a + b + d
main = c
private function main1(a,b)
c = a - b
main1 = c
result = main(10,5)
result1 = main1(10,5)
result = main(10,5) ' public function
result = main1(10,5) 'private function
Correct me if i made any mistakes on this code or else what is meaning for public and private function.
Re: Function Handling
You can't call a function in one action from another action. To do this your functions will need to be placed in an external library file.