Forum Discussion
shankar_r
6 years agoCommunity Hero
while (!TableList.IsEOF())
{
actual_Item = Grid.Rows.Item(i).Cells.Item(ColumnIndex).Value.OleValue;
expected_Item = TableList.Value(TableColName);
}
In the above code, where are you incrementing i ?. which looping on the same which might be the reason for TestComplete to crash.
You have to change your code like below.
var i = 0; while (!TableList.IsEOF()) { actual_Item = Grid.Rows.Item(i).Cells.Item(ColumnIndex).Value.OleValue; expected_Item = TableList.Value(TableColName); i++; }
- hiepwork086 years agoContributor
I only included a snippet of code to illustrate my problem.
But you are right, for the while loop to work it needs the i increment and the advancement of the table iterator, i.e
TableList.Next...
Related Content
- 4 years agoDavid91
Recent Discussions
- 2 hours agosimonaferrara
- 2 hours agoAli2