Treeview error

Hi,

The next line of code gives an Access violation.

treeview1.Selected:= treeview1.Items.AddChild(treeview1.Selected.Parent,
Trim(Text));

What's wrong with this ?

Ronald Janssen