Hi Shantanu,

If you have written your function in vbs file separately then you need to
associate that vbs file with your qtp scripts then only you can call the
function.

As per the error you have mentioned. Your function library is not
associated with QTP script. Please let me know if you have any challenges.

Regards
Nikhil Gangwar
+61-0415648499

On 27-Dec-2016 8:15 PM, "Shantanu Mishra" <[email protected]> wrote:

Public Function Add()
Dim a,b
a=10
b=10
c=a+b
print c
End Function

The above function is written in my Action1.
I have a abc.vbs file in which the below function is written
Function Sum1()
Dim a,b
a=20
b=50
c=a+b
print c
Call Add()
End Function

But I am unable to call Add.It shows me type mismatch


-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

---
You received this message because you are subscribed to the Google Groups
"QTP - HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
For more options, visit https://groups.google.com/d/optout.

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to