Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Keep row number
#1
Not Solved
Hi all,

Im having trouble making QTP do a For loop with stuff for 100 rows in a DataTable, then do different stuff 1 time and do the first stuff again for the next 100 rows (ie row 101-200), rinse and repeat with 100 rows each time. My problem is that it starts at row 2 after doing the code first time and I need it to continue from row 101 instead.

For clarification I added a msg box in the code and what im trying to accomplish is for that to add 1 each time, also between running full circle in the code (ie for each 100 rows). So lets say after doing 400 rows the msgbox should say 400 and the "do different stuff" code would then have been done 4 times.

Code:
Dim x

For x = 1 To 100

'Do stuff
msgbox DataTable.GlobalSheet.GetCurrentRow

Next

'Do different stuff 1 time and then start the For loop again from row 101

Is it in any way possible to "save" the row number and continue from that after doing the full code?

I would really appreciate any effort spend helping Smile

Using QTP 11 and in settings its set to run on all rows
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  DataGrid: double click on selected row robertosalemi 0 4,285 05-12-2016, 03:00 PM
Last Post: robertosalemi
  Row count is always shown as 1 Harry1999 0 1,975 04-14-2016, 11:11 PM
Last Post: Harry1999
  Retrieve row number based on value in DataTable marfa 6 29,977 07-31-2014, 08:36 PM
Last Post: dharshinishankari@gmail.com
  The recorded text output not appear on the correct row on the results datatable trance07 0 2,188 09-25-2013, 08:05 PM
Last Post: trance07
  How to add new row and select next dropdown pat_stan 2 3,414 10-29-2012, 12:14 PM
Last Post: krr

Forum Jump:


Users browsing this thread: 1 Guest(s)