Edit Tree Items:Delete Item Method

FlexRIO Help

Edition Date: November 2015

Part Number: 372614J-01

»View Product Info

»Download the Help in ZIP Format

Short Name: Edit Tree Items.Delete

Requires: Base Development System

Class: TreeControl Methods

To Use: Create a method.

Deletes an item from the tree control. Wire an empty string to tag and a value of TRUE to Delete Children to delete all items in the tree control.

If you do not update the value of a tree control after deleting a row, the control may return old data. Deleting a selected item does not change the value of a tree control. After you delete an item, the tree value may be a tag for an item that no longer exists. You can select one of the remaining tree items to update the value of the tree control.

This method is similar to the Delete Item item on the shortcut menu of a tree control.


Data typeNameRequiredDescription
tagNoUnique tag of the item you want to delete. The default is an empty string, which represents the root level in the tree control.
Delete ChildrenNoIf TRUE (default), the method deletes all the child items under the item you want to delete. If FALSE, the method moves all the child items to level in the hierarchy of the item you want to delete before deleting the item.


The following table lists the characteristics of this method.

Data typeNo return value
Available in Run-Time EngineYes (Read/Write)
Available in Real-Time Operating SystemYes
Settable when the VI is runningYes
Loads the front panel into memoryNo
Need to authenticate before useNo
Loads the block diagram into memoryNo
Remote access allowedYes


Not Helpful