Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Treeview - Move in cursor based on current node
Message
De
07/10/2004 12:43:00
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
07/10/2004 12:26:55
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00949603
Message ID:
00949613
Vues:
13
This message has been marked as the solution to the initial question of the thread.
>I used a cursor to populate the branches and leaves of a treeview. At the same time I populate a form array with the a unique value for each record in the cursor. Now I simply want to reposition the record pointer in the original cursor based on movement in the tree. I'm trying to use the NodeClicked property, but have not been able to get it to work correctly. What is the best way to handle this?

NodeClick :)
Don't you already have a cursor that matches NodeKey to Node's key?
=seek(Node.Key,'myCursor','NodeKey')

If your array is something like:
aNodes[recno()] = "NodeKeyInTV"
lnRecord = ascan(aNodes,Node.Key,1,-1,1,6)
if lnRecord # 0
   go lnRecord in myCursor
endif
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform