Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Populate treelist from editboxes 1

Status
Not open for further replies.

Mezzzo

Technical User
May 30, 2003
56
US
Hi

I have a treelist that I need to populate from another form. On the other form there are three sets of editboxes. Each set of editboxes has unique data that needs to be placed in their own node in the treelist. Could someone provide a bit of code that shows the population of the treelist.

Thanks for the help!!!!!!!!!!!!!
 
var C,S1,s2,t1:Ttreenode;

with TreeView1.Items do
begin
BeginUpdate;
clear;
C:=Add(nil,'First'); //this is the root
S1:=AddChild(C,'Second1'); //this is the child
S2:=AddChild(C,'Second2'); //this is the child
t1:=AddChild(s1,'third1');

EndUpdate;

end;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top