![]() |
Type mismatch - 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: Type mismatch (/Thread-Type-mismatch) |
Type mismatch - learnasugo - 11-11-2011 Please help, I am trying to set a value on TeField and although the program goes through. I get a run error: Type mismatch: 'TeField(...).Set' Line (118): ".TeField("Spouse income").Set SpouseInc" waht could be wrong here? RE: Type mismatch - Jyobtech - 11-11-2011 May be you missed import library file. RE: Type mismatch - parminderdhiman84 - 11-11-2011 it could be possible that the no of character allowed for the edit field "Spouse income" have exceeded the limit. Please check the value of the variable SpouseInc RE: Type mismatch - ravi.gajul - 11-11-2011 try this, assuming that SpouseInc was a value extracted from a string. Code: .TeField("Spouse income").Set cint(SpouseInc) Regards, Ravi RE: Type mismatch - vinod123 - 11-14-2011 it may due to validations of the feild can u specify the error you are getting and send the screenshot |