Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Type mismatch
#1
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?
Reply
#2
May be you missed import library file.
Reply
#3
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
Reply
#4
try this,
assuming that SpouseInc was a value extracted from a string.
Code:
.TeField("Spouse income").Set cint(SpouseInc)

Regards,
Ravi
Reply
#5
it may due to validations of the feild can u specify the error you are getting and send the screenshot
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Different Type of Dropdown Selector zunebuggy 6 4,519 05-01-2018, 06:46 PM
Last Post: zunebuggy
  cannot use the type method on object and submit is not working jove1776 5 9,925 01-27-2015, 10:08 PM
Last Post: Parke
  How to import .xlsx file type to QTP qtped 3 7,386 03-27-2014, 01:33 PM
Last Post: Ankur
  type mismatch error in QTP QAlearningQTP 1 7,622 02-04-2014, 08:14 AM
Last Post: QAlearningQTP
  QTP 11.52---Type mismatch error srinijg20 4 5,015 08-26-2013, 03:51 PM
Last Post: GregHicks

Forum Jump:


Users browsing this thread: 1 Guest(s)