Forum Discussion
Anton_A
14 years agoOccasional Contributor
Previous solution doesn't work for all items in collection. This is my last working copy. Jared, thanks.
function FindNode(node, soughtNode)
{
if(SameText(node.Text.OleValue,soughtNode))
return node;
for (var i = 0; i < node.Nodes.Count; i++)
{
found = FindNode(node.Nodes.Item(i), soughtNode);
if(found != null)
return found;
}
return null;
}
function FindNode(node, soughtNode)
{
if(SameText(node.Text.OleValue,soughtNode))
return node;
for (var i = 0; i < node.Nodes.Count; i++)
{
found = FindNode(node.Nodes.Item(i), soughtNode);
if(found != null)
return found;
}
return null;
}
Related Content
- 5 years ago
Recent Discussions
- 2 days ago