OverviewExamples
Inserts a node into the tree object.
(string) The name of the tree object.
(string) The index of the location to insert the node into.
(table) A table of properties to assign to the new node, indexed by the following keys:
KEY |
TYPE |
DESCRIPTION |
Text |
string |
The text of the current item. |
Data |
string |
The data of the current item. |
Selected |
boolean |
True if the item is selected, false if it is not. |
Expanded |
boolean |
True if the item is expanded, false if it is not. |
Checked |
boolean |
True if the item is checked, false if it is not. Note: If check boxes are not shown in the tree object, this property will be ignored. |
NodeIndex |
string |
The current item's node index. |
ImageIndex |
number |
The icon index that the current item will use when not selected. The icon file is specified in the Tree's properties. See the ImageList key in the Tree.SetProperties action for more information. |
SelectedImageIndex |
number |
The icon index that the current item will use when selected. The icon file is specified in the Tree's properties. See the ImageList key in the Tree.SetProperties action for more information. |
(string) The node index where the item was inserted to. If an error occurs, a blank string "" is returned. You can use Application.GetLastError to determine whether this action failed, and why.
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