Forum Discussion
irina_lukina
14 years agoSuper Contributor
Hi Darya,
As far as I understand, your question is: which object will be returned by the FindChild method if there are several objects (on different levels) that correspond to the search criterion? In this case, the FindChild method will iterate through the objects hierarchy tree from the specified parent object and will return the first found object that meets the specified criterion.
To improve the search (so that it finds the needed object but not the first found), I'd recommend that you specify a more detailed search criterion or change the search depth used by the method.
I hope this is what you were looking for :)