看我的:<br>procedure TForm1.Button1Click(Sender: TObject);<br>var<br> st:tstringlist;<br> i:word;<br>begin<br> st:=tstringlist.Create;<br> st.AddStrings(memo1.Lines);<br> treeview1.Items.Clear;<br> for i:=0 to st.Count -1 do<br> treeview1.Items.AddChild(nil,st.Strings);<br> st.Free;<br>end;<br>