Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TreeView.HitTest returns invalid reference
Message
 
À
04/03/2004 01:26:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00882283
Message ID:
00883149
Vues:
21
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform