Information générale
Catégorie:
Contrôles ActiveX en VFP
Hi Bob,
Thanks for the help. That didn't work for what I wanted but it did point me in the right direction and helped me solve it. What I found that worked for me was
in the nodeclick method
THISFORM.txtDir.Value = TRIM(node.text)
Why did you check to see if the selecteditem.index is not equal to 1?
Thanks
>>Does anyone know how to reference the item selected in a treeview?
>>
>>oleTreeView1.Click
>> ThisForm.txtTreeSelect.Value =
>>
>>
>>Thanks
>
>John,
>Look at the NodeClick property and try something like this:
>
>IF THIS.SelectedItem.Index <> 1
> THISFORM.cSelectedParent = TRIM(node.parent.text)
>ELSE
> THISFORM.cSelectedParent = THISFORM.cSelectedPart
>ENDIF
>
>HTH...Bob
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement