Dear all,
Please do help on the captioned subject. Thank you very much.
Here is the sample code with ERROR:
DataTable:
Id Value
1 11
1 22
2 33
3 44
3 55
Actually, I want to validate a PBdatawindow or webtable with 3 rows data. I used the aboved code but don't know how to pass the data row by row to checkpoint since the checkpoint will validate 1 row only at once time.
Please do help on the captioned subject. Thank you very much.
Here is the sample code with ERROR:
Code:
With PbWindow("PbWin1")
For i = 1 to .PbDataWindow("dw_list").RowCount
.PbDataWindow("dw_list").SelectCell i,"id"
For j = 1 to datatable.GetSheet("ChkList").GetRowCount
datatable.GetSheet("ChkList").SetCurrentRow(j)
id=DataTable("id", "ChkList")
If id = parameter("ID") Then
datatable.GetSheet("ChkList").SetCurrentRow(j+i-1)
.PbDataWindow("dw_list").Check CheckPoint("ChkList")
Exit For
End If
Next
Next
End With
DataTable:
Id Value
1 11
1 22
2 33
3 44
3 55
Actually, I want to validate a PBdatawindow or webtable with 3 rows data. I used the aboved code but don't know how to pass the data row by row to checkpoint since the checkpoint will validate 1 row only at once time.