Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Different Amount for same iteration
#1
Solved: 8 Years, 4 Months, 1 Week ago
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
Reply
#2
Solved: 8 Years, 4 Months, 1 Week ago
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Sad UFT IS NOT ABLE TO FIND THE RUNTIMEOBJECT(myo) IN FOR LOOP FOR THE SECOND ITERATION lakshmi29 0 2,247 09-14-2014, 10:00 PM
Last Post: lakshmi29
  Reading an amount from statement shipu 0 1,893 12-24-2013, 01:42 AM
Last Post: shipu
  QTP failure on the last iteration Petey1234 0 1,987 06-15-2012, 12:59 AM
Last Post: Petey1234
  Move to next iteration of for loop after Recovery scenario zoomintodepth 0 5,062 01-28-2011, 01:13 PM
Last Post: zoomintodepth
  Data table Iteration Shandru 5 9,623 12-02-2010, 01:44 PM
Last Post: Shandru

Forum Jump:


Users browsing this thread: 1 Guest(s)