TREEVIEW_DELETE
|
Syntax: |
TREEVIEW_DELETE(<Item>[,<Handle>])
|
||||
|
Meaning: |
Removes an item from a TREEVIEW. <Element> can contain the text or the
full path of the element after which the item is to be inserted. If
<Element> only contains the text and if this text appears several times
in the tree, the first element found is deleted. If <Element> is the
empty string, the whole tree is deleted.
Note: TREEVIEW_DELETE does not only delete one single element but also the
subtree belonging to the <Element>! TREEVIEW_DELETE returns the result 0 if no
error occurred, otherwise an error number (read TREEVIEW). |
||||
|
Parameter: |
|
||||
|
Sample: |
ON
SELECT(DEL) MACRO TREEVIEW.DELETE H% = TREEVIEW(...) ... Macro TREEVIEW.DELETE: /* Delete the
current item H% = TREEVIEW_DELETE(EBUS_TREEVIEW$) IF H% <> 0 THEN ... Error ... ENDIF |
||||
|
See also: |
|