Forum Discussion

philip_ward's avatar
philip_ward
New Contributor
12 years ago

ChildCount of a Table

I have a small issue that is driving me mad and wondered if anyone could shed some light on what is happening.I have a table made up of 5 columns with 4 rows of data and the column headers.. making 5 rows in all.  I am using ChildCount on the table and expect the result to give a value of 25 but it's returning a value of 20.  If I query the ChildCount of the table through NameMapping it shows the correct value (25) - I have attached  an image that I hope explains what I am seeing and what I should be seeing
  • It may be a race condition.

    Have you considered using the WaitProperty function to wait for the taable to be completely initialised?

    You can enforce the update of the value by using Table.Refresh too.
  • vincent_goude's avatar
    vincent_goude
    Occasional Contributor
    It may be a race condition.

    Have you considered using the WaitProperty function to wait for the taable to be completely initialised?

    You can enforce the update of the value by using Table.Refresh too.