sele treeview =tableupdate(.t.) go top o = thisform.oletreeview.nodes o.clear scan if alltrim(crelative) == '0' o.add(,1,alltrim(ckey),alltrim(ctext),0) else o.add(alltrim(crelative),4,alltrim(ckey), alltrim(ctext),0) endif endscanIn my form I have a simple add node button that adds a record to a table. Since I want my treeview to somewhat refresh (get the updated values of my table), I placed the code in the form's activate.