|
-
Mar 6th, 2001, 11:36 AM
#1
Thread Starter
New Member
I tried to use the treeview control. I added several nodes to the treeview control and then removed all the nodes using the Remove method. But when I tried to add newer nodes, an error message appeared : "Key non unique in the collection" whereas I created a new key ! What happened ?
Thanks !
-
Mar 7th, 2001, 07:17 AM
#2
Lively Member
can u paste the code please !!!!
-
Mar 7th, 2001, 06:01 PM
#3
Hyperactive Member
Make sure the key is unique i.e. place a counter:
to add a node:
private sub
dim i as integer
i = 1
more code .......
Set mNode = tvw1.Nodes.Add(relative, tvwChild, i, Text)
i = i+1
end sub
maybe it's required to declare your integer as public or global, depending on the rest of your code
Good luck
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|