Tree.FindNodeByData

string Tree.FindNodeByData ( 

string ObjectName,

string StartNodeIndex,

string Data )

Description

Searches the tree for a node based on specified data.

Parameters

ObjectName

(string) The name of the tree object.

StartNodeIndex

The index of the node whose first child will be the starting point for the search.

Tip: Use an index of "0" to reference the root-level nodes.

Data

(string) The data to find.

Returns

(string) A string containing the NodeIndex if a matching node is found. If no matching node is found, or an error occurs, a blank string "" is returned. You can use Application.GetLastError to determine whether this action failed, and why.

ResultVariable

When adding an action with the script editor, you can use this field to specify a variable that the return value will be stored in.

See also:  Related Actions