Comapring two List & Print the missed values - 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: Comapring two List & Print the missed values (/Thread-Comapring-two-List-Print-the-missed-values) |
Comapring two List & Print the missed values - kalaivanan123 - 08-07-2012 Hi All, Code: Call compare_values() In above function I am comparing two List (i.e :-Exp_vaues,Act_values). Then I would like to print the missed values in second list which is present in first. Now I'm getiing Output like below, Output:- Spain not found in Actual Values list Russia not found in Actual Values list Mexico not found in Actual Values list Germany not found in Actual Values list But I would like to print all the missed values in one statement(E.g:-Spain,Russia,Mexico,Germany not found in Actual values list) Pls help me to get solution for this. RE: Comapring two List & Print the missed values - sree.85 - 08-08-2012 Modify this code as Code: If flg=0 Then |