Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Re: Iteration Code Logic Help needed
#2
Solved: 12 Years, 10 Months, 3 Weeks ago
Hi,
Please find the below implemenation logic

Code:
rg=datatable.GetRowCount
ra=datatable.GetSheet(2).GetRowCount
temp=1
For i=1 to rg step 1
    msgbox "temp value"  &temp
    datatable.SetCurrentRow(i)
             gvalue=datatable.Value(1,1)
                  msgbox gvalue
                      For j=temp to temp+2 step 1
                           datatable.SetCurrentRow(j)
                              avalue=datatable.Value(1,2)
                                  msgbox avalue
                      Next
                temp=temp+3    
Next

Thanks,
Venkat.Batchu
Reply


Messages In This Thread
Re: Iteration Code Logic Help needed - by sratna - 11-05-2009, 11:37 PM
RE: Iteration Code Logic Help needed - by venkatbatchu - 11-06-2009, 11:24 AM
RE: Iteration Code Logic Help needed - by sratna - 11-06-2009, 08:26 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Object not found during the 2nd iteration of an Action call in a For loop BGunay 0 1,331 04-23-2020, 07:08 PM
Last Post: BGunay
  UFT Tool runs more than one iteration always cthossain 2 4,508 02-12-2017, 01:25 PM
Last Post: cthossain
  Need a logic in array - QTP surestud 4 3,759 08-20-2015, 02:47 PM
Last Post: cuongtv
  Function return value is not passed during the 3rd iteration premanand1979 0 2,586 10-16-2014, 09:40 PM
Last Post: premanand1979
  VB Script logic Suma Parimal 3 3,227 03-24-2014, 12:56 AM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 1 Guest(s)