11-07-2008, 02:25 PM
Hi,
You will not be able to use this statement
to generate rowwise loop instead use INDEX.
here in this case you need to increment i value according to the rows for example if you have two columns and two rows then
the index would be
C1 C2
R1 0 1
R2 2 3
just try
one more thing you can also use
Hope i would have answered you.
You will not be able to use this statement
Code:
"Browser("..").Page("..").WebTable("..").GetROProperty("rows").GetCellData(i,1)"
here in this case you need to increment i value according to the rows for example if you have two columns and two rows then
the index would be
C1 C2
R1 0 1
R2 2 3
just try
Code:
Dim i,rows,total
rows=Browser("..").Page("..").WebTable("..").GetROProperty("rowcount")
For i=0 to rows Step 2
if Browser("..").Page("..").WebTable("html tag:=TD","index:="&i).GetROProperty("innertext")="value" Then
total = total +1
Else
msgbox "No rows present"
total = 0
End If
Next
msgbox total
one more thing you can also use
Code:
.GetCellData(i,1) instead of GetROProperty("innertext")
Hope i would have answered you.