Skip to content

RemoveNode - cWebTreeView

Removes a tree item and all of its child items

Type: Procedure

Parameters

Parameter Type Description
sId String Id of the node to remove

Syntax

Procedure RemoveNode String sId

Call Example

Send RemoveNode sId

Description

Send RemoveNode to remove a tree item and all of its child items.

Object oRemoveBtn is a cWebButton
    Set piColumnIndex to 2
    Set psCaption to "Remove"

    Procedure OnClick
        String sID
        WebGet psSelectedId of oTree to sID
        Send RemoveNode of oTree sID
   End_Procedure
End_Object

In the above example the button object's OnClick event has been coded to remove the currently selected item of the tree view object (oTree). The web property psSelectedID is retrieved to get the item ID of the currently selected tree item.