Any ideas??
Carlos
For example if your key is "5", CStr(5), "5_Dogs", treeview will give you an
error.
To overcome this just add prefix to your real key "K5", "K5_Dogs", etc...
Hope this helps...
"carlos marquez" <carlos....@za.pwcglobal.com> wrote in message
news:05b201c2df30$1ec311c0$a501...@phx.gbl...
>Make sure that the first character of your key is not a numeric value.
>
>
>For example if your key is "5", CStr(5), "5_Dogs", treeview will give you an
>error.
>
>To overcome this just add prefix to your real key "K5", "K5_Dogs", etc...
>
>
What you have said is incorrect.
As long as the key is not numeric it is allowed
It is preferable to have the number first, suffixed with a
character. That way you simply use the VAL() function to
return the number from the key.
J
>
>
>
>"carlos marquez" <carlos....@za.pwcglobal.com> wrote in message
>news:05b201c2df30$1ec311c0$a501...@phx.gbl...
>> I have a problem whereby what ever key I try to use to
>> insert a node into a treeview control results in error
>> message "Invalid Key" no 35603. I have Visual Studio 6
>> with Service Pack 4
>>
>> Any ideas??
>> Carlos
>>
>
--
Hijack: A tool for changing airline tires. (Leopold Fechtner)
Carlos
>.
>
For intI = 1 To 5
Set FirstNode = TreeView1.Nodes.Add(,tvwFirst, , "Node: "
& intI)
TreeView1.Nodes.Add FirstNode, tvwChild, "C" &
intI, "Child Node of Parent " & intI
Next
-Bob.
>.
>
>Thanks for your advice guys, but it doesn't work
>regardless of the letter or number being first.
Please post your code.
J
--
My wife went to the corner market.
Bought two corners.
(Henny Youngman)