Removes items from the tree.

Syntax

rv = Send_Message(Ctrl, "OLE.RemoveItems", Items)

Parameters

ParameterDescription
ItemThe items to be removed

Remarks

The RemoveItems method removes specific items from the tree. The Items parameter is an @FM delimited list of item keys. The items, if they exist, will be permanently removed from the tree. If you want to delete all items, use the RemoveAllItems method instead.

If you remove an item that has children, then all its children are removed with it.

Example

// Assume a tree with boys and girls organized into teams 
// Remove the purple team and all its children 
Send_Message(@Window:".OLE_TREE", "OLE.RemoveItems", "PurpleTeam")

See Also

AddItemsInsertItemsMoveItemsRemoveAllItems

  • No labels