Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TreeView.HitTest returns invalid reference
Message
 
To
04/03/2004 01:26:43
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00882283
Message ID:
00883149
Views:
20
>One nice thing about the TV is the node's "key" member. That's useful if I want to cross-reference the node to different entities. Say, I've got (1)Manager-(2)Supervisor-(3)Employee. I use "Manager_"+BINTOC(Manager.Manager_ID) for the key and "Supervis"+BINTOC(Supervisor.Supervisor_ID). Click on the node, and interpreting Node.Key tells me which record from which table to look at.

I actually place the cursor/DBF key values in the key member to point to source data when a node is clicked. It's also a great way to check a node's availability: TYPE('oTV.Nodes(lcKey).key')=="C"

I also have a project with 4 list views and a treeview. All the OCX's fire the same NodeClick event. It's amazing what can be done with those guys!
Imagination is more important than knowledge
Previous
Reply
Map
View

Click here to load this message in the networking platform