Micro Focus QTP (UFT) Forums
Calling Function from another function - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: Calling Function from another function (/Thread-Calling-Function-from-another-function)



Calling Function from another function - anshika.agarwal - 02-23-2015

Hello,

Can anyone please help how to call a function from a function.

I have created a simple function:

Code:
Function dropdownselect()
' This function performs a shell script to select a particular item from the drop down.
If value found then
return 1
Else
return 0
End if
End Function
Now I want to access dropdownselect from another function which is using different weblist options but it doesnt like it if I am calling dropdownselect() directly and it jumps to the next step without doing anything. I am not sure the reason of this behaviour, but please if anyone can help me to call the function.

Thanks in Advance,
Anshika

Please note that when I used this function directly in a Test then it worked -- it just doesnt work when called from another function.


RE: Calling Function from another function - anshika.agarwal - 03-02-2015

This is working now - I used the functional call with different calling mechanism.