Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VB to VFP Treeview Question
Message
From
03/04/1999 12:10:50
 
 
To
03/04/1999 02:48:11
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00204610
Message ID:
00204953
Views:
17
>>
>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform