
This method deletes any tree item and its children.
Returns the following according to the situation:
The recommended convention is passing the control identifier directly:
Copy Code |
|---|
(Odcl_Tree_DeleteItem MyControlReference [as Reference] Key [as String or Tree Node Handle]) |
An alternative convention is to identify the control by providing the project file, the dialog name and the control name:
Copy Code |
|---|
(Odcl_Tree_DeleteItem ProjectFile [as String] DialogName [as String] ControlName [as String] Key [as String or Tree Node Handle]) |
Warning: If the tree control was populated using String keys, this method may incorrectly re-order the internal key list so that String keys will not match the correct node items. This is a design flaw of the Microsoft Tree control and a work around has not be found.
Copy Code |
|---|
; Delete a tree item (Odcl_Tree_DeleteItem MyProject_MyForm_MyControl "C_Documents and Settings") |
Tree_AddChild (Using Lists), Tree_AddChild (Single Entry), Tree_AddParent (Using Lists), Tree_AddParent (Single Entry), Tree_Clear Tree_InsertAfter,