Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VB to VFP Treeview Question
Message
De
03/04/1999 12:10:50
 
 
À
03/04/1999 02:48:11
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00204610
Message ID:
00204953
Vues:
16
>>
>>I can successfully assign the property in a treeview,
>>the problem I'm having is once having assigned it, to
>>set it back to nothing (.null).
>Tom,
>I'm always in trouble with treeview. I can set it to "nothing" with a dummy workaround :
with ThisForm.Oletreeview
>	oNode = .nodes.add(,1,"myDummy") && Add dummy node
>	.drophighlight = oNode           && set drophighlight to dummy
>	.nodes.remove(oNode.key)         && remove dummy
>endwith	
BTW could you assign it with hittest ?
>Cetin
Cetin,

I had the same problem if I assigned it with hittest.
Don't understand why the 2nd line produces an error. This code is executed before a node object is ever assigned to the drophighlight property and has a null value.

l_o = ThisForm.oletreeview.drophighlight

ThisForm.oletreeview.drophighlight = l_o && error generated

Thanks for the workaround suggestion. The users will never no the difference.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform