Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange problem with Treeview SelectedItem property
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00812987
Message ID:
00814439
Vues:
13
I agree - I think SelectedItem is just an imbedded mostly readonly
handle. I myself have never thought of it as a property that can be assigned something.

I have also had problems with SelectedItem=.NULL.. It seemed to change [for a while] the node's data type from object to a null!

>Hi Terry,
>
>>
>It seems the code Jim's code (THISFORM.Tree.SelectedItem = THISFORM.Tree.Nodes(1)) is trying to do more than just reference. It's trying to assign a node to the reference, which is usually accomodated with a Nodes(xxx).Selected=.t.
>>
>
>Assigning a node to the SelectedItem property of the tree is perfectly valid (as per the help). Since .SelectedItem is just a reference to a node then it follows that if .SelectedItem is reported as 'not an object' then the culprit is actually the node which it is attempting to reference. Maybe in Jim's case the Node(3) which he expects to be the SelectedItem is the problem
>
>Regards,
>Viv
Imagination is more important than knowledge
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform