Different Amount for same iteration - 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: Different Amount for same iteration (/Thread-Different-Amount-for-same-iteration) |
Different Amount for same iteration - Rose - 03-25-2016 How do I get different amount in the below function ? I wasn't to excute this function to run one time but it should loop twice and I could be able to get different amounts. Public Function (RCategory,StrLogin,StrAmt) For iVal = 1 to 2 Set RObj = Browser(" ").Page(" ").Frame(" ").WebTable(" ") RObj.ChildItem(Rcnt-2,6,"WebEdit",0).Set CCUR(StrAmt) Next RE: Different Amount for same iteration - vinod123 - 03-31-2016 StrAmt = DataTable("Amount", dtGlobalSheet) For iVal = 1 to 2 DataTable.SetCurrentRow(iVal) Set RObj = Browser(" ").Page(" ").Frame(" ").WebTable(" ") RObj.ChildItem(Rcnt-2,6,"WebEdit",0).Set StrAmt Next |