79655687

Date: 2025-06-06 09:18:44
Score: 1
Natty:
Report link

for me the following C++ function does the job:

void __fastcall DeleteTreeViewNode(TTreeViewItem *node)
{  while (node->Count)     // deletes recusively the node and all his descendants
      DeleteTreeViewNode(node->Items[node->Count-1]);   //delete the last child
   delete node;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user3082316