Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Treeview - Invalid Key
Message
De
08/10/2004 14:48:13
 
 
À
08/10/2004 14:27:25
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:
00950000
Vues:
62
>I must be dense...
>
>This:
>
>
>This.Treeview.Nodes(5).Key
>
>
>Returns:
>
>
>"X00000000005"
>
>
>But, this:
>
>
>This.Treeview.Nodes(key)
>
>
>Has no value.
>
>I just don't get it... Why isn't there something like a GiveMeTheKeyForTheCurrentNode property? Or is there and I'm missing it?
>
>>The TreeView control has a single SelectedItem property that contains an object reference to the currently selected Node. It is the Nodes collection and the individual Node objects that have the properties required to navigate the tree. You can access an individual Node in the collection using either its Key or its Index like this:
>>
>>Thisform.oTree.Nodes( Key ) or Thisform.oTree.Nodes( Index )
>>
>>However, the value of its Index is entirely dependent on the order in which the Node is added to the TreeView so it is only useful in those instances where you need to iterate through all the children in the Nodes collection of a specific Node.
? This.Treeview.Nodes(This.Treeview.Nodes(This.Treeview.Nodes(5).KEY).INDEX).KEY
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform