Forum Discussion
tristaanogre
14 years agoEsteemed Contributor
Actually, because of what you are looking for, FindChild, FindChildren, FindAllChildren is better than WaitAliasChild. The reason being is that WaitAliasChild does not search the whole tree of descendant objects. So, when you have Aliases.Alpha.Beta.Gamma.Delta.Epsilon and call Aliases.Alpha.WaitAliasChild(), the only valid "child" to wait for is Beta. Gamma is not a direct child of Alpha so it is not a valid child for WaitAlias child. FindChild, FindChildren, FindAllChildren actually have a parameter for you to indicate "depth" as to how deep in the tree of child objects you'll search for the one you want. So, I'd not even bother with the check on WaitAliasChild but go directly for FindChild.