Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treeview - Invalid Key
Message
 
To
08/10/2004 13:41:23
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00949695
Message ID:
00949986
Views:
50
Hmm,

Yes, in help for common controls is wrote so that property [node].Index is index in node collection.

I use only Key for access to any node...
* anywhere in treeview
lcKey="X"+LTRIM(STR(n,11))
loNode=This.Nodes.Item(lcKey)
MartinJ

>Ok, that worked, but now I have another very related issue. The line of code below is in my NodeClicked method and in the debugger it displays the key correctly. But where do I get the "5" (or whatever node number) from? I thought it was INDEX, but that does not return anything.
>
>
>This.Treeview.Nodes(5).Key
>
>
>>Key ID is same as object name - same rules
>>First letter must be alfa or _.
>>
>>You can use "X"+LTRIM(STR(n,11)) OR "X"+STRTRAN(STR(n,11)," ","0")
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Reply
Map
View

Click here to load this message in the networking platform