The Stoat
The Grim Squeaker
- Local time
- Today, 13:07
- Joined
- May 26, 2004
- Messages
- 239
Hi all,
I am populating a tree view control from data in a table. However i get the error message 'Run time error 356003 invalid key' when i try to add a childnode that is numeric.
If i replace StrChild with "1" i still get the same problem.
I can solve the problem by checking for numeric values in Strchild and adding a character to the string , i choose [] i.e. [100] but i wondered a) why this is happening 2) can you get round it?
Cheers
TS
I am populating a tree view control from data in a table. However i get the error message 'Run time error 356003 invalid key' when i try to add a childnode that is numeric.
Code:
With my treeview.nodes
.add StrParent, twvChild, StrChild,StrChild
end with
If i replace StrChild with "1" i still get the same problem.
I can solve the problem by checking for numeric values in Strchild and adding a character to the string , i choose [] i.e. [100] but i wondered a) why this is happening 2) can you get round it?
Cheers
TS