Iterate recursively through nodes in a tree view?

后端 未结 2 1601
闹比i
闹比i 2021-02-09 15:41

I have a tree view which is populated already with files/folders from another procedure. I would like to iterate one by one through the items in the tree view, going in exact or

2条回答
  •  遥遥无期
    2021-02-09 16:19

    var
     i:Integer;
    begin
      for I := 0 to tv.Items.Count - 1 do
          begin
            Listbox1.Items.Add(tv.Items[i].Text +' SubItems: ' + IntToStr(tv.Items[i].Count))
          end;
    
    end;
    

提交回复
热议问题