The Stoat
The Grim Squeaker
- Local time
- Today, 01:09
- Joined
- May 26, 2004
- Messages
- 239
Hi all,
I'm still having problems with the treeview control. I've found out from the microsoft knowledge base that you can't use numeric data for the nodes as the control treats them as variants and therefore tries to use them as indicies. This means you have to append something to them to make them a string and using the Cstr or str functions don't work either.
Anyway today's problem. If i have 2 parent nodes A,B
A has a child node F
B has a child node F
How do i add a child node to AF without it being added to BF?
Consider that i am populating this on the fly what syntax should the parent parameter take? I haven't managed to find any examples of this.
Thanks for your help
TS
I'm still having problems with the treeview control. I've found out from the microsoft knowledge base that you can't use numeric data for the nodes as the control treats them as variants and therefore tries to use them as indicies. This means you have to append something to them to make them a string and using the Cstr or str functions don't work either.
Anyway today's problem. If i have 2 parent nodes A,B
A has a child node F
B has a child node F
How do i add a child node to AF without it being added to BF?
Consider that i am populating this on the fly what syntax should the parent parameter take? I haven't managed to find any examples of this.
Code:
'Strparent = "A/F/" ?
'StrChild = "X"
With MyTreeView.Node
.add, Strparent,tvwChild,StrChild,StrChild
End With
Thanks for your help
TS