I am trying to get the rowcount of a global datatable, by giving
The rowcount from the column which I retrieve values will always be differing, so initially I entered values for 12 rows, script ran fine, later again I changed the values and now the rowcount is only 5, but still when I run the script it is showing the rowcount as 12 and the script is failing looking for the value in 6th row.
following is my code
For i = 0 to rowcount-1
I did check the run time settings and it is set correctly. How can I resolve the issue ?
I may be off the mark here as I am not a QTP person but I understand that data tables are based on MS Excel.
If this is true then in MS Excel if you just delete data from rows these rows are still considered active - you can see this by using <CTRL>/<END>. In order to de-activate the rows you have to delete them by using a delete rows command.
I suspect that you may have a similar issue here from what is described.