Error Mismatch.........Can you help - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: Error Mismatch.........Can you help (/Thread-Error-Mismatch-Can-you-help) |
Error Mismatch.........Can you help - Oceans Blue - 10-25-2010 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 RE: Error Mismatch.........Can you help - KavitaPriyaCR - 10-25-2010 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") RE: Error Mismatch.........Can you help - A.Saini - 10-25-2010 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: Hope it will run fine at your end too. RE: Error Mismatch.........Can you help - KavitaPriyaCR - 10-25-2010 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. |