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

Regards,
Ravi
Reply
#5
Solved: 10 Years, 8 Months, 3 Weeks ago
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 2,829 05-01-2018, 06:46 PM
Last Post: zunebuggy
  cannot use the type method on object and submit is not working jove1776 5 8,377 01-27-2015, 10:08 PM
Last Post: Parke
  How to import .xlsx file type to QTP qtped 3 6,310 03-27-2014, 01:33 PM
Last Post: Ankur
  type mismatch error in QTP QAlearningQTP 1 6,800 02-04-2014, 08:14 AM
Last Post: QAlearningQTP
  QTP 11.52---Type mismatch error srinijg20 4 4,095 08-26-2013, 03:51 PM
Last Post: GregHicks

Forum Jump:


Users browsing this thread: 1 Guest(s)