Element: treenode.kill ( )

Type

numeric

Description

A function to destroy the tree window node to which treenode points. A 0 value is returned when successful. 1 is returned on error.

Destroying a treenode removes it from its tree window. It also nullifies any other treenode identifiers which point to it.

This is typically called from within the treenode.delete callback, when it is safe to remove the treenode.

Parameters

<treenode>.kill()

Example

user_t.delete = {
    args t=treenode
    ifyes 'Is it safe to delete',t.label {
       t.kill
    }
}

Notes

The code of the function cannot be redefined.