Forum Discussion
shankar_r
Community 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++; }
hiepwork08
6 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...