Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error Mismatch.........Can you help
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
I can not find out why I am getting that error mismatch?

Can you please help...Attached is a DOC with screen shots and error report

Thanks,
OC


Attached Files
.doc   ERROR MISMATCH.doc (Size: 423.5 KB / Downloads: 103)
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi
I executed your code in my system it's working fine here, try to find out what value you are passing to the function by putting msgbox after the line:
StrDate = DataTable.Value("Date", "Action1")
Reply
#3
Solved: 11 Years, 3 Months, 3 Weeks ago Wink 
Hi Blue,

The error was due to wrong syntax. you were using StrDatesValue(1) but the correct value should be StrDatesValues(1).

Code:
' The old code is:
StrFinalDate = StrDatesValues(0)&StrDatesValue(1)&Right(StrDatesValues(2),2)

' Updated code is:
StrFinalDate = StrDatesValues(0)&StrDatesValues(1)&Right(StrDatesValues(2),2)

Hope it will run fine at your end too.


Smile
Reply
#4
Solved: 11 Years, 3 Months, 3 Weeks ago
Yah Saini is right,
while trying out your script i had written the statement correctly here in my system and hence i didn't find that error, executed successfully.
Now i checked it back u were missing that "s", and after deleting that "s" i am also getting that error successfully.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Type Mismatch:Check point while using DP Uma 0 3,783 09-07-2011, 05:26 AM
Last Post: Uma
  Type mismatch is displayed for .SET method (Blank value) dineshb 4 4,330 07-20-2010, 08:58 PM
Last Post: dineshb
  Type mismatch error vijay44 1 2,543 01-22-2010, 02:58 PM
Last Post: ambareesh
Smile Type Mismatch Error using QTP sunillsvu 0 6,617 01-19-2010, 01:14 PM
Last Post: sunillsvu

Forum Jump:


Users browsing this thread: 1 Guest(s)