Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Treeview - Invalid Key
Message
 
À
08/10/2004 13:41:23
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00949695
Message ID:
00949986
Vues:
51
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform