>I'm getting an error when adding a node on a treeview that states, "OLE IDispatch exception code 0 from Nodes: Invalid key.." Below is the line of code it fails on. It looks ok to me, but obviously it's not.
>
>
>m.NewNode = THIS.treeview.nodes.ADD(m.ParentNode, 4, STR(TreeCursor.UniqueID), Paths[i])
>
>
>
>UPDATE: The value of STR(TreeCursor.UniqueID) is " 1"
>
Treeview ActiveX it is not a pure object,
then you cannot put on Key any string value.
ANY MS treeview ActiveX have a prohibited set of values.
Then you cannot put a key string with VAL(Key)=number.
It is absurd, but it is therefore.