Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treeview - Invalid Key
Message
From
08/10/2004 10:00:32
 
 
To
07/10/2004 15:47:18
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00949695
Message ID:
00949878
Views:
37
>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"
>
try with
alltrim(str(treecursor.uniqueid))+'_'

instead of just

str(treecursor.uniqueid)
Previous
Reply
Map
View

Click here to load this message in the networking platform