Micro Focus QTP (UFT) Forums
QTP 11.52---Type mismatch error - 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 Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: QTP 11.52---Type mismatch error (/Thread-QTP-11-52-Type-mismatch-error)



QTP 11.52---Type mismatch error - srinijg20 - 07-19-2013

Hi,

Im getting type mismatch error while calling a function

eg
Code:
function add(a,b)
sum=a+b
msgbox sum
end function
call add(10,20)

the error is: Type mismatch:add

note:i didn come across this error in UFT 11.5 but UFT 11.52 is showing this error


RE: QTP 11.52---Type mismatch error - basanth27 - 07-19-2013

It is vbscript so testing tool shouldnt matter until there exists a keyword by the name of ADD in UFT. I put it up on a vbs file and it worked fine for me.


RE: QTP 11.52---Type mismatch error - srinijg20 - 07-19-2013

While working with vbs file its working fine ,but whenever i use this in a function library and call this during a test run it is showing me this error.


RE: QTP 11.52---Type mismatch error - sana - 08-20-2013

I have exact same problem, please let me know what you DID.


RE: QTP 11.52---Type mismatch error - GregHicks - 08-26-2013

hi all

The symptoms suggest add has become a keyword in UFT. Just out of curiosity, did you try changing the name of the function from add to something else, like add2Num