run over object\'s children
I have a question,
I have an object that have few childrens that are created dynamically.
I want to run over those children and check each one's text property.
Can you please explain how can I do that?
Re: run over object\'s children
You need to obtain the parent object and iterate through its children. The ChildCount property will give you the number of children, and the Child method will give you a child by its index. For example (JScript):
<font class="small">Code:</font><hr /><pre>...
var obj = // Obtain the object
for(var i = 0; i < obj.ChildCount; i++)
var currentChild = obj.Child(i);
// Do something with the child